July 22nd - 23rd / New York CityJohn Jay College of Criminal Justice

Diamond Sponsors

Migrating React class components to use hooks

Rosalind Wills

When: July 22 @11:15am
Where: Room 2

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
Decoupled Days 2020

July 22nd - 23rd / New York City
John Jay College of Criminal Justice
524 W 59th St, New York, NY 10019