Skip to content

Glossary: React Basics

Setter function

Also written: setCount, setter

The second item `useState` returns, such as `setCount`. Calling it with a new value stores it and asks React to render again.

Where the book teaches it

Related terms

useStateUpdater function