State machines
10 articles ยท all categories
State machines articles
5 articles from 2020 ยท show all
November 2020
React context without context, using XState โ CodeWithSwiz 14, 15
useAuth works without React Context! ๐ here's how
October 2020
Swap useReducer with XState โ CodeWithSwiz 13
In Refactoring a useReducer to XState we talked about a 5 step process to turn a reducer into an XState state machine. Today answers "Ok now what?"
How to write tests for XState โ CodeWithSwiz 12
Once you know how to refactor a useReducer to XState, you gotta prove you did it right.
Refactoring a useReducer to XState, pt1 โ CodeWithSwiz 11
XState promises to be like useReducer+Context combined and the simplest way to handle complex state in React apps. But can it deliver? On this episode of #CodeWithSwiz, we gave it a shot.