Fast React Render Save

[DEPRECATED] Use last versions of React and Node.js for better performance

Project README

With the release of the new version React and Node.js the performance issue has ceased to be so acute. Use last versions of React and Node.js for better performance.

[React] Server render Build Status Coverage Status

The module for rendering react-element in the server 3 times as fast (see benchmarks) as traditional react rendering (in production mode).

Quick start

All you need to use it, is only:

  1. install package
npm install fast-react-render
  1. replace you render to:
var ReactRender = require('fast-react-render');

var element = React.createElement(Component, {property: 'value'});
console.log(ReactRender.elementToString(element, {context: {}}));

Cache

React server rendering support cache for component.

First of all, you must choose cache system. It can be any system, which implement ICache interface (interface). For caching, component must implement ICacheableComponent interface (interface).

Example with using LRU cache: render with LRU cache (install lru-cache package first).

What's next

If you need more performance, you can try use fast-react-server - is high speed mock for react, which provide rendering 11 times as fast as traditional, but require more configuration for build system.

Open Source Agenda is not affiliated with "Fast React Render" Project. README Source: alt-j/fast-react-render
Stars
99
Open Issues
2
Last Commit
6 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating