JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15
  • Score
    100M100P100Q39605F
  • 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

Official ComponentRouter bindings for React.

Gitter Build Coverage Dependencies Dev Dependencies

Installation

NPM

npm install --save react redux history qs component-router react-component-router

Don't forget to manually install peer dependencies (react, redux, history, qs, component-router) if you use npm@3.

1998 Script Tag:

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

Demo

// TODO

Codepen demo

// TODO

Usage

See example/App/index.js

Options

// TODO

Development and testing

Currently is being developed and tested with the latest stable Node 7 on OSX.

To run example covering all ReactComponentRouter features, use npm start, which will compile example/index.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 start test

# Run End-2-End tests
npm start e2e

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

License

MIT