Skip to content

Instantly share code, notes, and snippets.

@dispalt
Forked from benjohnson/react-nested-router.sh
Created July 15, 2014 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dispalt/a6a32213c3b99c8ff3e3 to your computer and use it in GitHub Desktop.
Save dispalt/a6a32213c3b99c8ff3e3 to your computer and use it in GitHub Desktop.
# React Nested Router is only distributed with CommonJS.
# To get a standalone version wrapped in a Universal Module (AMD/CJS/Global) run the browserify command below.
# If there's no module system it'll export a global called ReactNestedRouter.
# This assumes you've got React on the page in some other way (AMD, Global, etc)
$ npm install browserify
$ npm install react-nested-router
$ ./node_modules/.bin/browserify -r react-nested-router/modules/main -x react -s ReactNestedRouter -o react-nested-router.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment