1.5.0 • Published 7 years ago

fast-react-server v1.5.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

React Server Build Status Coverage Status

It's high speed react mock for server rendering. You can use it with fast react render, in that case render will be 12 times as fast (see benchmarks) as traditional react rendering (in production mode).

Quick start

npm install fast-react-render fast-react-server
var React = require('fast-react-server');
var ReactRender = require('fast-react-render');

var element = React.createElement(
    React.createClass({
        render: function () {
            return React.createElement('div', {}, this.props.text);
        }
    }),
    {text: 'some text'}
);
console.log(ReactRender.elementToString(element));

If you want use it, you must remember: each component, which you want render, you must declared with this mock (configure you build system for that).

Also fast react server support ES6 classes and Stateless Functions (see examples: es6 and stateless-function).

More examples:

Cache

Fast react server support cache for component which implement in fast react render. See how it use here.

1.5.0

7 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.0

8 years ago