Chapter 3: Hooking into React
In the previous chapter, we learned to perform actions inside a function component with our crafted states. In this chapter, we will go through the challenges we face in creating a good state solution, and then see how React builds the solution with the underlying Hook. We will then introduce what a hook is and get to know it, as well as its calling order, and learn how to avoid running into conditional hook issues in real applications. The chapter also includes two bonus topics in the Appendix section, React Fiber and Current and WorkInProgress Scenes.
We will cover the following topics in this chapter:
- Creating good state solution
- Introducing a React Hook
- What is a hook?
- Questions and answers
- Appendix