Recently published.
Older posts
6 posts · sorted newestGlobal Component Registration
Registering React components in a global store so modals and similar widgets can be triggered from anywhere in the app. Borrowed from Insomnia's source.
Encapsulating State with Functional Children
How to use functional children (what the community now calls render props) in React to share reusable stateful logic between components.
Tips on Creating Reusable Components
Tips for building reusable React components: keep them small, keep them composable, treat UI as a function of state.
Introduction to Higher Order Components
Higher Order Components (HOCs) in React, explained: what they are, why they work, and how to write one from scratch.
Injecting Dynamic Elements to Components
Letting consumers of a reusable React component swap the underlying HTML tag or child component, so you stop shipping ten near-duplicate versions.
Intro to FlightJS
Building a counter component with FlightJS, Twitter's component-based JavaScript framework, from scratch.