Using the Reducer and Effect Hooks
After developing our own blog application using the State Hook, we are now going to learn about two other very important Hooks that are provided by React—the Reducer and Effect Hooks. We will first learn when we should use a Reducer Hook instead of a State Hook. Then, we will learn how to turn our existing State Hook into a Reducer Hook to get a grasp on the concept in practice. Finally, we are going to learn about Effect Hooks and what they are used for and implement them in our blog application.
The following topics will be covered in this chapter:
- Reducer Hooks versus State Hooks
- Using Reducer Hooks
- Using Effect Hooks