#react
- React batches state updates after all the event handlers. This ensures no race conditions if multiple events are triggered at once.
- If we need all events to modify state we can either use a reducer or pass a function to set state that modifies the state value.
---
https://overreacted.io/react-as-a-ui-runtime