A boilerplate for a React app that renders on the server and automatically rehydrates on the client. Includes title and meta description support for SEO.
npm install
npm install -g grunt
grunt
To get your app to render dynamic title and meta tags for SEO, set the title
and meta
static properties on your route handler.
var Index = React.createClass({
statics: {
title: "This will be the page title",
meta: {
description: "This will be the meta description"
}
}
/* … */
});
You can fine tune what renders on the server and the client by leveraging
browserify’s process.browser
flag.
- Make the nodemon server only restart after a Broccoli build completes
- Data layer
- Testing boilerplate
MIT