# fast-react-server

> Fast server react (advanced performance render)

Latest version **1.5.0** (published 2017-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install fast-react-server
pnpm add fast-react-server
yarn add fast-react-server
bun add fast-react-server
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.0 |
| Published | 2017-07-26 |
| First published | 2016-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrey Morozov |
| Maintainers | alt-j, sigorilla |
| Keywords | react, render, server, performance, optimization, speed, cache, html |

## Links

- npm: https://www.npmjs.com/package/fast-react-server
- Repository: https://github.com/alt-j/fast-react-server
- Homepage: https://github.com/alt-j/fast-react-server#readme
- Issues: https://github.com/alt-j/fast-react-server/issues
- npm.io page: https://npm.io/package/fast-react-server

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) 15.5.10

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.5.0 (latest) — 2017-07-26
- 1.4.1 — 2017-02-17
- 1.4.0 — 2017-02-14
- 1.3.0 — 2016-10-25
- 1.2.0 — 2016-10-06
- 1.1.3 — 2016-10-03
- 1.1.2 — 2016-09-30
- 1.1.1 — 2016-09-30
- 1.1.0 — 2016-09-30
- 1.0.3 — 2016-09-18
- 1.0.2 — 2016-09-12
- 1.0.1 — 2016-09-07
- 1.0.0 — 2016-09-02
- 0.0.14 — 2016-09-02
- 0.0.13 — 2016-08-31
- … 4 more at https://npm.io/package/fast-react-server/versions

## README

# React Server [![Build Status](https://travis-ci.org/alt-j/fast-react-server.svg?branch=master)](https://travis-ci.org/alt-j/react-server) [![Coverage Status](https://coveralls.io/repos/github/alt-j/fast-react-server/badge.svg?branch=master)](https://coveralls.io/github/alt-j/fast-react-server?branch=master)

It's high speed react mock for server rendering.
You can use it with [fast react render](https://github.com/alt-j/fast-react-render), in that case render will be **12 times as fast** (see [benchmarks](https://github.com/alt-j/react-server-benchmark)) as [traditional react rendering](https://facebook.github.io/react/docs/environments.html) (in production mode).

## Quick start
```sh
npm install fast-react-render fast-react-server
```

```js
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](https://facebook.github.io/react/docs/reusable-components.html#es6-classes) and [Stateless Functions](https://facebook.github.io/react/docs/reusable-components.html#stateless-functions) (see examples: [es6](examples/es6.jsx) and [stateless-function](examples/stateless-function.js)).

More examples:
- tiny [seed project](https://github.com/alt-j/fast-react-seed) (in progress);
- [examples](examples/) for main features.

## Cache
Fast react server support cache for component which implement in [fast react render](https://github.com/alt-j/fast-react-render).
See how it use [here](https://github.com/alt-j/fast-react-render#cache).

---
_Source: https://npm.io/package/fast-react-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
