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.


Marco Cedaro

May 10, 2019