Questions
Before we end this chapter, let's test our knowledge with some questions:
- When implementing an action object, how many properties can it contain?
- How did we make the state in our store read-only?
- Does the
Provider
component from React Redux need to be placed at the top of the component tree? - What hook from React Redux allows a component to select the state from the Redux store?
- What is wrong with the following code that dispatches an action to the store?
useDispatch(gettingQuestionAction);
- Is a component that consumes the Redux store allowed to have a local state?