Skip to content

*DEPRECATED* Connext/Express server middleware to serve pre-rendered React apps

License

Notifications You must be signed in to change notification settings

andreypopp/react-app-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-app-middleware

DEPRECATION WARNING: This is not maintained anymore, please use react-quickstart instead.

Connext/Express server middleware to serve pre-rendered React apps.

Installation

% npm install react-app-middleware

Usage

Use react-app-controller to define your application and then construct the following middleware stack:

var express = require('express');
var ui = require('react-app-middleware');
var bundle = require('react-app-bundler');

var app = express();
app.use(ui.serveRenderedPage('./index.jsx', {
  debug: true,
  script: '/bundle.js'
}));
app.get('/bundle.js', bundle.serve('./index.jsx', {debug: true}));

app.listen(3000);

Note also that you need to ship client code to a browser, you can use react-app-bundler package for that.

About

*DEPRECATED* Connext/Express server middleware to serve pre-rendered React apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published