A Finite State Machine Helper for Redux
Too Long; Didn't Read
I’ve noticed that <a href="http://redux.js.org/" target="_blank">Redux</a> apps often embed ad-hoc <a href="https://en.wikipedia.org/wiki/Finite-state_machine#Example:_coin-operated_turnstile" target="_blank">finite state machines</a>, with information about the current status spread out throughout <a href="http://redux.js.org/docs/basics/Reducers.html" target="_blank">reducers</a>. I wrote a small helper for working with finite state machines in <a href="https://hackernoon.com/tagged/redux" target="_blank">Redux</a> called <a href="https://www.npmjs.com/package/redux-machine" target="_blank">redux-machine</a>. In this post, I’ll go into: