Redux Toolkit Explain
In this video I explain redux toolkit and how to async function with it. I go over the basic pattern of redux toolkit.
Terms
- Store: The object contains all of your apps data.
- Action Creator: A function that creates an action.
- Action Creator: An object that is passed to your reducer. It usually has a type and payload.
- Reducer: A function that takes in an action and state that the store is storing
General Flow
1. Event Happens 2. Action creator is called 3. Action creator create an action 4. Action is passed to the reducer with the state 5. Reducer changes your state based on the action.