This shows routing on the client and the server with react-router. Navigation uses history pushes on the client but browser refresh will render the current page correctly on the server.
npm install
# run
npm run dev
# open http://localhost:3000
npm run build
# dumps bundles into /assets
NODE_ENV=production node ./src/server
# runs index.js with prod env var
@bobpace fork of react-router.
pull request to allow transition hooks access to a context object you can specify when you create the router