Why are React state updates asynchronous?
React batches updates for performance, so multiple setters in the same event are applied together in a single re-render. This avoids wasteful intermediate renders and improves efficiency.
Verify This Answer
Cross-check this information using these trusted sources:
More FAQs in Props and State Interview Questions for React Developers
Props are inputs passed from a parent and are read-only inside the child. State is internal data owned by the component that can change and trigger re-renders. Props are external inputs; state is internal memory.
No. Props are read-only. If the data needs to change, the parent updates its state and passes new props down. Mutating props breaks React's one-way data flow and leads to bugs.
When you call the state setter, React schedules a re-render, compares the new state to the old, and updates the DOM to match the new UI description. This is how the UI stays in sync with the data.
Still have questions?
Browse all our FAQs or reach out to our support team
