React refactoring, off the hook(s)!

React refactoring, off the hook(s)!

React Hooks are going to change the way we write React components and apps. Let’s explore together refactoring of a real world app with hooks, introducing the concept and exploring how the mental model of components has to evolve breaking the dichotomy of stateful class vs stateless “functional” components. We are going to deep dive in the code of the app, a quite busy stateful component, looking at how we could use hooks to refactor it.

3ca63d4e2f2be0ef47b841e63b564d18?s=128

Marco Cedaro

May 10, 2019
Tweet