finds.dev← search

// the find

gaearon/react-hot-boilerplate

★ 3,892 · JavaScript · MIT · updated Aug 2020

Minimal live-editing example for React

Dan Abramov's original minimal demo for React Hot Loader — live editing React components without losing state. It is explicitly deprecated and points to react-refresh-webpack-plugin as the replacement. There is no reason to start a new project from this.

Historically significant as the proof-of-concept that made HMR for React mainstream. The setup is genuinely minimal — eight files, easy to read if you want to understand how the original hot loader wired into webpack. Good reference for understanding what react-refresh replaced and why.

Deprecated since at least 2020, last touched five years ago. React Hot Loader itself has known issues with hooks that react-refresh solves. The webpack config and babel setup reflect 2017-era conventions. Anyone cloning this for a real project is starting in a hole.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →