React and Redux
Most important words in Redux architecture:
- Store
- Dispatch
- Actions
- Reducer
- State
Store
??
Reducer
Reducer is a function that recieves two parameters and returns a piece of the application state.
The first parameter is the current state, and the second is the action
|
|
Dispatch
Is a function that returns an action. Returns an object with the type property and can return extra data if necessary.
State
State is an object managed by STATE.
|
|
Action
Container (Smart Component)
Container is a react component that as a direct connection to the state managed by redux.