Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Visual Intro to Custom React Hooks

Visual Intro to Custom React Hooks

Lightning talk @ Reactadelphia July 2019! melody.dev/custom-hooks

Inky Collective

July 16, 2019

More Decks by Inky Collective

Other Decks in Technology


  1. Let’s talk hooks. “They let you use state and other

    React features without writing a class.” —Dan Abramov
  2. Where can custom hooks be used? “where is stateful logic

    involved?” “can this logic be reused?”
  3. Let’s make a hook! psst… they’re just functions! • it

    has to start with `use` • you can use other hooks in them • notably, useState() and
 other custom hooks!