How to avoid concurrency issues in React
React proposes a simple declarative way to build an application's view. It's straightforward to write a hierarchy of stateless components or to change a state synchronously. The whole app works as an integration of two pure functions "state(event)" and "view(state)". The behavior is testable and predictable.