React State Types
The five types of state in React applications.
Published January 15, 2025 ET
Types of state:
- Data - The app's business data
- Communication - The status of any not-yet-complete requests to other services
- Control - Specific to a given container component & not stored in the screen's URL or History
- Session - Information about the human being which is currently using your application. Only ever read when a component is mounted
- Location - The information stored in the URL and the HTML5 History state object
Each member has a type and a selector.