Skip to content

Glossary: React Basics

useState

The hook that gives a component state. `useState(0)` returns the current value and a setter function, and calling the setter makes React render again.

Where the book teaches it

Related terms

StateSetter functionHook