Skip to content

Glossary: Real-Time Apps with WebSockets

State (React)

Also written: state, useState

Data a component keeps. `useState` gives the value and a setter, and calling the setter stores a new value and redraws the page.

Where the book teaches it

Related terms

ComponentuseEffect