What is state in React?

State is an object that holds data or information about the component. Unlike props, which are read-only, state is mutable and can change over time, allowing React to re-render components dynamically.