November 2019
Beginner
804 pages
20h 1m
English
In the previous sections, we covered different concepts of React, but we only provided examples for class components. While doing so, we kept repeating that hooks are enablers for the same functionality in function components. But what exactly are hooks and what is their purpose? Let's find out!
In the past, React class components were comparatively more powerful than function components: they could have an internal state, could hook into the lifecycle, and so on. Function components on the other hand, did not have equivalent APIs. The only way to use some features was to convert ...
Read now
Unlock full access