An open API service indexing awesome lists of open source software.

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

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)