React Hooks

The React snippet collection contains function components and reusable hooks for React 16.

  • useTitle

    React, Hooks

    Sets the title of the page

  • useToggler

    React, Hooks

    Provides a boolean state variable that can be toggled between its two states.

  • useEffectOnce

    React, Hooks

    Runs a callback at most once when a condition becomes true.