At the time of writing, React hooks are still in alpha but they can already be used and, since it takes a while to get used to them, it's better to understand them as soon as possible. In this talk we will see some use cases in which we refactor a class component into a hook-based functional component.
2. Why
They separate stateful logic
They are composable functions
They keep our component hierarchy flat
They allow us to go fully functional
They are now stable
33. Hooks:
Simplify and organize code
Are composable
Will give performance gains
Are subject to rules
Are still completely optional
Will not replace everything else