TS Tricks: Type-safe Reducers
We're going to talk about how to build a type-safe reducer. Now, I use these for redux reducers, but these principles could apply to any function.…
We're going to talk about how to build a type-safe reducer. Now, I use these for redux reducers, but these principles could apply to any function.…
With everyone getting excited about Typescript I thought it'd be fun to do a walkthrough of one of my favorite features, type guards. These are type-safe functions that allow us to assert that an argument matches a certain type. The best part is these work at runtime!…
How do you code-split your store so you’re not serving unnecessary JavaScript on a single page? And while you’re working on code splitting, how do you get it to play nicely with TypeScript so that you can trust what’s going in and coming out of the store?…