Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.55 KB

readme.md

File metadata and controls

53 lines (42 loc) · 1.55 KB

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.

Getting started

npm install
npm install -g grunt
grunt

Title and Meta support

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"
    }
  }

  /* … */

});

Server vs client rendering

You can fine tune what renders on the server and the client by leveraging browserify’s process.browser flag.

Demo

Todo

  • Make the nodemon server only restart after a Broccoli build completes
  • Data layer
  • Testing boilerplate

Built with these awesome projects

License

MIT