Skip to content

glintik/fast-react

 
 

Repository files navigation

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

    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']

Why so fast?

soon

Known incompatibilities

  • Cannot reuse existen html code created by server side react
  • Mixins doesn't support (soon)
  • IE9+

See also

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.7%
  • Other 1.3%