- Is the type property in action objects required? And does this property need to be called type? Can we call it something else?
The type property is required in the action objects and must be called type.
- How many properties can the action object contain?
As many as we like! It needs to include at least one for the type property. It can then include as many other properties as we need in order for the reducer to change the state but this is generally lumped in one additional property. So, generally an action will have one or two properties.
- What is an action creator?
An action creator is a function that returns an action object. Components invoke these functions in order to make a change to the state in the store.
- Why did we need Redux Thunk in our Redux store in our React shop app?
By default, a Redux store can't manage asynchronous action creators...