3 ms·
Nice. Reminds me of a post describing implementation of a React login page FSM using some simple ClojureScript to describe and run the state transitions: http
by markc 8y ago
Nice.
Reminds me of a post describing implementation of a React login page FSM using some simple ClojureScript to describe and run the state transitions:
https://github.com/jebberjeb/reframe-fsm/blob/master/doc/HOWTO-blog.md https://github.com/jebberjeb/reframe-fsm/blob/master/doc/HOW...
I found it unusually clear, useful, and easy to follow.
For anyone going down the ClojureScript path that wants more sophisticated FSMs, there a few nice libraries dedicated to that:
https://github.com/ztellman/automat https://github.com/ztellman/automat ,
https://github.com/cdorrat/reduce-fsm https://github.com/cdorrat/reduce-fsm ,
https://github.com/jedahu/spaghetti https://github.com/jedahu/spaghetti