finds.dev← search

// the find

gaearon/flux-react-router-example

★ 1,420 · JavaScript · MIT · updated Aug 2017

A sample app showcasing Flux with React Router

A weekend sample app by Dan Abramov demonstrating Flux architecture with React Router, Normalizr, and the GitHub API. Aimed at developers learning Flux patterns circa 2014-2015. Abramov himself has since moved to Redux and ported this example there.

The Content Store / List Store / Indexed List Store taxonomy is a genuinely useful mental model that still holds up. Normalizr integration for flattening nested API responses is well-executed — the trick of harvesting entities from any action without a switch is clever. Pagination is real, not faked with a static array.

Last touched in 2017, predates hooks by two years, and the author publicly recommends using the Redux port instead — this is a museum piece, not a starting point. The bundled dist/ with compiled JS checked into git is a smell. Uses experimental decorator syntax that never landed in the language. Anyone starting a project from this would immediately hit dependency hell: Webpack 1, Babel 5, React 0.13 vintage.

View on GitHub → Homepage ↗

// 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 →