Farzad and David use XState to build the logic for a resizable panel with React in an impromptu live stream.
Check out the accompanying code on CodeSandbox.
Farzad and David use XState to build the logic for a resizable panel with React in an impromptu live stream.
Check out the accompanying code on CodeSandbox.
From fetching data to fighting with imperative APIs, side effects are one of the biggest sources of frustration in web app development. And let’s be honest, putting everything in useEffect hooks doesn’t help much.
Thankfully, there is a science (well, math) to side effects, formalized in state machines and statecharts, that can help us visually model and understand how to declaratively orchestrate effects, no matter how complex they get. In this talk, David ditches the useEffect
hook and discovers how these computer science principles can be used to simplify effects in our React apps.
Our XState VS Code extension has now been installed 10k times! Install the extension yourself from inside VS Code or find the XState extension on the Open VSX Registry to enjoy the following new features.