JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q24438F
  • License MIT

Official ComponentRouter bindings for React

Package Exports

  • react-component-router

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-component-router) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-component-router npm

Gitter

CircleCI AppVeyor Coverage Dependencies Dev Dependencies

Official ComponentRouter bindings for React.

Installation

NPM

npm install --save react react-component-router

Don't forget to manually install peer dependencies (react) if you use npm@3.

Bower:

bower install --save https://npmcdn.com/react-component-router/bower.zip

or in bower.json

{
  "dependencies": {
    "react-component-router": "https://npmcdn.com/react-component-router/bower.zip"
  }
}

then include as

<script src="bower_components/react/react.js"></script>
<script src="bower_components/react-component-router/build/react-component-router.js"></script>

1998 Script Tag:

<script src="https://npmcdn.com/react/dist/react.js"></script>
<script src="https://npmcdn.com/react-component-router/build/react-component-router.js"></script>
(Module exposed as `ReactComponentRouter`)

Demo

// TODO

Codepen demo

// TODO

Usage

// TODO

Options

// TODO

Development and testing

Currently is being developed and tested with the latest stable Node 5 on OSX and Windows. Should be ok with Node 4, but not guaranteed.

To run example covering all ReactComponentRouter features, use npm start, which will compile src/example/Example.js

git clone git@github.com:nkbt/react-component-router.git
cd react-component-router
npm install
npm start

# then
open http://localhost:8080

Tests

npm test

# to run tests in watch mode for development
npm run test:dev

# to generate test coverage (./reports/coverage)
npm run test:cov

License

MIT