12. State Management with Hooks
Overview
This chapter will focus on a detailed approach to using Hooks. You will be able to use the useState and useReducer functions to manage state and decide when to use what. You can create and manage complex state transitions using these hooks. To avoid the most common bugs, you will be able to use the useEffect
hook and the various techniques of performing cleanups in order to optimize your code. You can create custom hooks based on state and effect. By the end of this chapter, you will have a solid understanding of implementing hooks.