Visual Intro to Custom React Hooks

Visual Intro to Custom React Hooks

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

D6e6de8a5d1bd38cb31b668209d956ce?s=128

Inky Collective

July 16, 2019
Tweet

Transcript

  1. 4.

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

    React features without writing a class.” —Dan Abramov
  2. 6.

    Where can custom hooks be used? “where is stateful logic

    involved?” “can this logic be reused?”
  3. 9.

    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!