/preact-redux-typescript-rollup-starter

Smallest "React-like" + Redux starter EVER - 13KB min&gzip

Primary LanguageTypeScriptMIT LicenseMIT

Minimal "React-like" + Redux starter

13KB min+gzip

  • Preact - drop-in replacement for React: https://preactjs.com/
  • bundling with tree-shaking with Rollup
  • static typing with TypeScript
  • ES5 transpilation with Babel

Bundle size comparison:

  • preact + preact-compat + redux + react-redux (Bundle)= 13KB!!!
  • preact + preact-compat + redux + react-redux + google-map-react (Demo Page) = 27KB!!!
  • react + react-dom (same source code) = 138KB

Installation

npm i
npm run tsc && npm run build
npm start

Warning:

Important to use exact dependencies set in package.json, then update each dependency separately because newer preact-plugins can introduce breaking changes and stop this setup from working.


The MIT License (MIT)

Copyright (c) 2016 Piotr Witek piotrek.witek@gmail.com (http://piotrwitek.github.io)