Skip to content

lng50k/Fast-Render-React.js

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published