useState

The useState hook allows you to add state to your functional components.

Snippet:

const [state, setState] = useState(initialValue);

Example:

const [count, setCount] = useState(0);