Effect for Reducers in React
Riffing off of my last post, I thought I'd refactor the async side of my helper to use a reducer, and try to leverage Effect's Tagged Enum to create and use discriminated unions, which lends itself very nicely to reducers. Turns out this is like, crazy easy and crazy good.…