Skip to content

ralphholzmann/react-isomorphic-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published