Skip to content

vanslly/preact-redux-typescript-rollup-starter

 
 

Repository files navigation

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)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 42.1%
  • CSS 22.4%
  • JavaScript 18.4%
  • HTML 17.1%