July 22nd - 23rdVirtual Event!

Migrating React class components to use hooks

Rosalind Wills

When: July 22 @11:15amET

Hooks, introduced in React 16.8, are one of the biggest changes to the library in recent memory; they are Javascript functions which can be integrated into functional components to produce a variety of useful React behaviors that were previously restricted to class components and more complex code. By making use of hooks in a React codebase, you can reduce its dependence on class components and increase the reusability and testability of your UI code. And conveniently, they're all backwards compatible, meaning that you can introduce them to your codebase gradually where they provide the most value.This talk is designed for intermediate to experienced React developers and will cover approaches for incrementally updating an existing codebase, component by component, to make use of up-to-date, hook-centric patterns.

← Back to Sessions