mattdennewitz / react-helmet-example

A no-frills example of using react, react-router, and react-helmet together in a universal context

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-helmet-example

This is an example of using react-helmet with React and react-router in a universal (client/server) context.

Usage

Check out this repo (or simply copy the code) and then, from inside the codebase, follow these steps:

  1. Install requirements:
$ npm install
  1. Run webpack to create the client-side script
$ webpack
  1. Start the Express server
$ npm start
  1. Visit http://localhost:8080 and check out the document's <head> node in its source. Then, change pages and watch as react-helmet keeps <head> in sync with the current route.

About

A no-frills example of using react, react-router, and react-helmet together in a universal context

License:MIT License


Languages

Language:JavaScript 100.0%