https://github.com/piotrwitek/preact-redux-typescript-rollup-starter
Smallest "React-like" + Redux starter EVER - 13KB min&gzip
https://github.com/piotrwitek/preact-redux-typescript-rollup-starter
boilerplate preact redux rollup starter-kit typescript
Last synced: 11 days ago
JSON representation
Smallest "React-like" + Redux starter EVER - 13KB min&gzip
- Host: GitHub
- URL: https://github.com/piotrwitek/preact-redux-typescript-rollup-starter
- Owner: piotrwitek
- License: mit
- Created: 2016-11-18T00:01:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-08T10:05:05.000Z (about 7 years ago)
- Last Synced: 2025-03-30T21:33:21.224Z (about 2 months ago)
- Topics: boilerplate, preact, redux, rollup, starter-kit, typescript
- Language: TypeScript
- Homepage: https://piotrwitek.github.io/preact-redux-typescript-rollup-starter/
- Size: 60.5 KB
- Stars: 25
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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### Demo Page: https://piotrwitek.github.io/preact-redux-typescript-rollup-starter/
## Bundle size comparison:
- preact + preact-compat + redux + react-redux ([Bundle](https://github.com/piotrwitek/preact-typescript-rollup-starter-kit/blob/master/bundle.js.gz))= 13KB!!!
- preact + preact-compat + redux + react-redux + google-map-react ([Demo Page](https://piotrwitek.github.io/preact-redux-typescript-rollup-starter/)) = 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 (http://piotrwitek.github.io)