{TRANSITIONS} = F(STATE)
React components can be viewed as defining a state machine, where the UI and valid state transitions are functions of the current state ({transitions} = f(state)). Asynchronous and concurrent updates in React can create situations where users can trigger invalid updates because the UI doesn't immediately reflect the new state. To prevent this, devs should use optimistic or pending updates that flush synchronously to the DOM, making sure that the UI accurately reflects the valid transitions.