React — Composing Higher-Order Components (HOCs)

Casey Morris
Dec 11, 2017 · 7 min read

Intro

Follow Along (Example App)

Use Cases

Loader

Error

Default

Data

MockData

Logger

Props

Timeouts

Container

List

HOCs

hasProps

hasLogger

branch

hasMockData

hasLoader

hasError

hasDefault

hasData

hasTimeouts

isList

Composition Using Higher-Order Components

isContainer

Quick Note About Debugging

Using Redux Compose

Example App

Home Page

Posts, Todos, Comments, and Users Pages

Wrapping Up

Feedback? Words of encouragement? 🎉

DailyJS

JavaScript news and opinion.