August 2020
Beginner
806 pages
12h 44m
English
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.
We have seen in the previous chapter how Hooks, as compared to render props, can simplify a React app. The methodical approach of Hooks helps in creating ...
Read now
Unlock full access