@archangel63/react-render-server

Very simple node server that render React app bundle into HTML string

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Aug 20, 2018Jul 31, 2018Minified + gzip package size for @archangel63/react-render-server in KB

Readme

What is it?

It's a very simple nodejs server that render React app to HTML string.

Features

Usage example

IMPORTANT! This package requires babel-polyfill for correct work!

  1. Install package with npm i --save @archangel63/react-render-server command

  2. Create your server.js file with the following content: ` require("babel-polyfill");

    require("@archangel63/react-render-server").run(5001, {

     baseDir: __dirname,
     mode: "render"
    

    }); `

  3. Run it with node server.js

  4. Pass requests to the http://localhost:5001 with HTTP header X-LOCAL-HOST: *your api server address*

    License

    MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.