Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cevek/fast-react
https://github.com/cevek/fast-react
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cevek/fast-react
- Owner: cevek
- License: mit
- Created: 2015-07-13T13:36:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-01T22:16:29.000Z (about 8 years ago)
- Last Synced: 2024-10-16T08:49:17.043Z (2 months ago)
- Language: JavaScript
- Size: 3.35 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fast React
## Why?
* Fast-React is like React but faster up to 10 times by added overhead
* Tolerate for an errors in render and other component methods
* It has very small size – 6kb vs 26kb gzip
## Compability
Full compability with all existen react libs and components include react-redux, react-router, animations.
## Benchmarks
soon
## Install
You don't need change existen code base. Just add settings to your webpack.config.js`npm install fast-react --save`
`npm install babel-fast-react --save-dev`
webpack.config.js
```js
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: {
presets: ['es2015', 'react'],
plugins: ["babel-fast-react"]
}
}]
},
resolve: {
extensions: ['', '.js', '.jsx'],
alias: {
react: 'fast-react',
'react-dom': 'fast-react'
}
},
```babel-fast-react transforms jsx code
```htmlHello world
```
to examplary array
```js
['div', 'className', 'foo', 'Hello world']
```## Why so fast?
soon## Known incompatibilities
* Cannot reuse existen html code created by server side react
* Mixins doesn't support (soon)
* IE9+## See also
* [preact](https://github.com/developit/preact)
* [inferno](https://github.com/trueadm/inferno)