Easier Asynchronous State Modelling in React Redux or Hooks
Channel: Jesse Warden
Date: 28/02/2019

I show how to use Folktale's Algebraic Data Types (union types) to:
- ensure impossible states can't happen in your Redux reducers or Hooks
- make it more obvious what the initial state is
- a lot less code
- easier to test, reason about, and put your data right next to your UI code that uses it

Blog post here: http://jessewarden.com/2019/02/easier-asynchronous-state-modelling-in-react-redux-or-hooks.html

Code here (master branch, and types branch): https://github.com/JesterXL/react-redux-async-types