Typescript

Blog

Fixing VSCode Typescript Auto-Imports

Fix that thing where auto-imports don't work in new TS files 🤬

Read More
React

Jest Snapshots & the Soul of Wit

Keep your Jest snapshots tidy and embrace Shakespeare.

Read More
React

Conditional Rendering in React

Hide your conditional content with a component.

Read More
React

Higher-Order Components with React & TypeScript

Get the types right on your React HoCs in TypeScript.

Read More
Opinion

Finding Freedom in "JavaScript Fatigue"

A lot of people have spoken about "JavaScript fatigue": the idea that there are so many new frameworks, tools and ideas available to the average JavaScript developer that it`s impossible to keep up...

Read More
Typescript

Cleaning up Resources using MutationObserver

Let's say you've written a shiny new component in your favourite framework and somewhere along the way you've allocated a resource that cannot be automatically cleaned up by the browser.

Read More
TypeScript

Maintaining Context in TypeScript classes

TypeScript is generally pretty good at persisting `this` in functions but there are certain circumstances where you can get a class function to run in the wrong context.

Read More