React + Redux + Routing Stack for 28kb
Just because your stack is awesome, doesn't mean it has to be fat.
This repo serves as a minimally viable example of how to combine the great ideas of React + Redux without compromising on your build size.
Kilobytes as currency
My goal for this project is to treat kilobytes as a sort of currency.
I'll give you React, Redux and a Routing Stack for just 28kb. What can you offer me?
Heavy frameworks aren't just slow for end users to download, they slow down our transpilers, they are harder to understand internally when the framework inevitably breaks, and they're typically more difficult to extend and make our own.
Behind the Curtain
- React (via Preact)
- Redux (via Socrates)
- Action Logging (via Redux Logger)
- Functional Routing (via enroute + simple history middleware)
See for yourself
git clone https://github.com/matthewmueller/28kb-react-redux-routing npm install npm start
All the hard work here was done by @developit for his work on Preact and @gaearon for his work on redux. The "custom" modules you see above are just a small amount of UX grease on top of great implementations.