- Every time the store gets updated it notifies the subscribers so they can update the UI .
- State is read-only The only way to mutate the state is to emit an action, an object describing what happened.
- 3. Reducers receive actions and return new state
- Because everything is based on actions, which are by definition simple objects, the only requirement on the Back-end would be: receiving the action and dispatching it to other players connected in the same room/game id.
Read the full article, click here.
There’s this thing going on in the Front-End Development community where everybody wants to re-write their applications to use React. Sorry…