Component State

Noun · Development

Definitions

  1. The local data a component holds to determine how it behaves or renders at a given moment, such as input values, open/closed status, or in-progress async results. Component state must be managed carefully because too much local state can make behavior unpredictable and hard to synchronize with the rest of the system.

    In plain English: The local data a component keeps to decide what it should show or do.

    Example: "The bug came from duplicated component state: the modal thought the form was pristine even after the shared store had already marked it dirty."

Related Terms