Goodbye, useEffect [eng]
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, we’ll ditch the useEffect hook and discover how these computer science principles can be used to simplify effects in our React apps.
- Software engineer who loves playing piano and is passionate about animations, state machines, cutting-edge user interfaces, and open-source
- Previously at Microsoft, he is now the founder of Stately, a startup focused on making even the most complex application logic visual and accessible to developers and non-developers alike
- The creator of XState, a library that brings finite state machines and statecharts to the modern web in React (and any other framework) and enables app logic to be visualized, simulated, tested, analyzed, and more
- David is also half of the Keyframers, a weekly coding live-stream where imaginative user interfaces are brought to life
- When not speaking around the world or coding behind a laptop keyboard, he's usually behind a piano keyboard