React Hooks

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

  • useInterval

    React, Hooks

    Implements setInterval in a declarative manner.

  • Eesolves to useEffect() on the server and useLayoutEffect() on the client.

  • usePrevious

    React, Hooks

    Stores the previous state or props.

  • 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.