How Redux Works - Part 1

In this article we'll be covering createStore. This is the function that sets up the redux store and provides access to getState, dispatch, subscribe, and replaceReducer.…

TS Tricks: Higher Order Components

Higher order components are a useful pattern for creating composable logic within a React application. While they're not as popular as other tools like render props or hooks, they're still worth knowing. How do higher order components work? Well as we discussed in Functional Programming Fundamentals, higher order functions take…

TS Tricks: Type Guards

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!…