Become a member
to unlock all features

    Transition a Stateful ADT with Outside Input


    Without any input from the outside world to drive it, a state machine can be a very boring affair. It becomes even more boring, if we were to create a game that took no input from the outside. By using actions, Redux provides a means to allow the outside world influence and drive the application state based on some payload. In order to demonstrate how we can provide input to our transitions, we will create another transaction that takes an id and transitions the state based on that input.