The React snippet collection contains function components and reusable hooks for React 16.
React, Hooks
Stores the previous state or props.
React, Hooks
Provides a boolean state variable that can be toggled between its two states.
React, Hooks
Sets the title of the page
React, Hooks
Runs a callback at most once when a condition becomes true.