New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fast-react-server

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-react-server

Fast server react (advanced performance render)

latest
Source
npmnpm
Version
1.5.0
Version published
Maintainers
2
Created
Source

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:

  • tiny seed project (in progress);
  • examples for main features.

Cache

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

Keywords

react

FAQs

Package last updated on 26 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts