Skip to content

neilorama/react-helmet-example

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%