Writing
Notes from the workbench.
Short writeups on things I'm thinking about — React, TypeScript, design systems, and the occasional rabbit hole.
2024
2023
Generics in TypeScript
An introduction to TypeScript generics — what they are, why `any` is a trap, and how `<T>` lets you write code that's both reusable and type-safe.
A brief explanation of React Server Components
Quick mental model for React Server Components — how they differ from client components, what RSC streaming does, and the two big problems it solves.
2021
Adding a button with onClick on InfoWindow (Google Maps API)
How to inject a working button into a Google Maps InfoWindow content string and bind a click handler that fires even before the DOM is fully ready.
Offline screen in React Native with NetInfo
Detect connectivity changes in React Native and render an offline screen using @react-native-community/netinfo — six small steps.
Hosting your Express.js backend on Heroku
Step-by-step guide to deploying an Express.js backend to Heroku using the CLI, including how to push only the backend folder from a monorepo.
Simple local push notifications in React Native (Android)
A minimal recipe for getting react-native-push-notification working on Android, including channel creation, scheduling, and cancellation.