ralphholzmann / react-isomorphic-boilerplate

Just having fun for now

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Just having fun for now


Languages

Language:JavaScript 100.0%