October 2019
Intermediate to advanced
426 pages
11h 49m
English
Let's remind ourselves about the first principle of React:
As we have learned in this chapter, Hooks allow us to write code that tells React what we want. With class components, however, we need to tell React how to do things. As a result, Hooks are much more declarative than class components, making them a better fit in the React ecosystem.
Hooks being declarative also means that React can do various optimizations on our code, since it is easier to analyze functions and function calls rather ...
Read now
Unlock full access