React State Types

The five types of state in React applications.

Published January 15, 2025 ET

Types of state:

  1. Data - The app's business data
  2. Communication - The status of any not-yet-complete requests to other services
  3. Control - Specific to a given container component & not stored in the screen's URL or History
  4. Session - Information about the human being which is currently using your application. Only ever read when a component is mounted
  5. Location - The information stored in the URL and the HTML5 History state object

Each member has a type and a selector.

Resources

  1. http://jamesknelson.com/5-types-react-application-state/