React refactoring, off the hook(s)!

A presentation at jsDay in in Verona, VR, Italy by Marco Cedaro

React Hooks are going to change the way we write React components and apps. Let’s explore together the 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.

Resources

The following resources were mentioned during the presentation or are useful additional information.

  • Colours

    The website we are refactoring

  • Github

    The branch with the code for the talk

Buzz and feedback

Here’s what was said about this presentation on social media.