-
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
Full compability with all existen react libs and components include react-redux, react-router, animations.
soon
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
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
<div className="foo">Hello world</div>
to examplary array
['div', 'className', 'foo', 'Hello world']
soon
- Cannot reuse existen html code created by server side react
- Mixins doesn't support (soon)
- IE9+