46 articles since 2015

Recently published.

Older posts

6 posts · sorted newest

Global 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.

ReactJavascript
Dec 8, 2017
3 min read

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.

ReactJavascript
Sep 14, 2017
3 min read

Tips on Creating Reusable Components

Tips for building reusable React components: keep them small, keep them composable, treat UI as a function of state.

ReactJavascript
Sep 8, 2017
5 min read

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.

JavascriptFrontendReact
Aug 17, 2017
2 min read

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.

JavascriptFrontendReact
Jul 26, 2017
4 min read

Intro to FlightJS

Building a counter component with FlightJS, Twitter's component-based JavaScript framework, from scratch.

JavascriptFlightJS
Nov 17, 2015
5 min read