https://github.com/react-bootstrap/react-router-bootstrap-bower
AMD modules and browser globals of react-router and react-bootstrap compatible components
https://github.com/react-bootstrap/react-router-bootstrap-bower
Last synced: 9 months ago
JSON representation
AMD modules and browser globals of react-router and react-bootstrap compatible components
- Host: GitHub
- URL: https://github.com/react-bootstrap/react-router-bootstrap-bower
- Owner: react-bootstrap
- License: apache-2.0
- Created: 2015-07-10T21:30:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T16:32:16.000Z (almost 7 years ago)
- Last Synced: 2024-10-10T17:45:43.133Z (about 1 year ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 3
- Watchers: 7
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-router-bootstrap [![Travis][build-badge]][build] [![npm][npm-badge]][npm]
Integration between [React Router] v4 and [React Bootstrap].
## Installation
For React Router v4:
```sh
npm install -S react-router-bootstrap
```
For React Router v3 or lower (see [rr-v3] branch):
```sh
npm install -S react-router-bootstrap@rr-v3
```
## Usage
Wrap your React Bootstrap element in a `` to make it behave like a React Router ``
`` accepts same parameters as React Router's [``]
Please note that by default React Router will match any location that contains path specified in `to` prop.
To make `` to match the location exactly, set `exact` prop to `true` or use ``
instead.
## Example
Following plain React Bootstrap component
```js
Foo
```
becomes
```js
Foo
```
## Contributing
See [CONTRIBUTING](CONTRIBUTING.md).
[React Router]: https://github.com/reactjs/react-router
[React Bootstrap]: https://github.com/react-bootstrap/react-bootstrap
[build-badge]: https://travis-ci.org/react-bootstrap/react-router-bootstrap.svg?branch=master
[build]: https://travis-ci.org/react-bootstrap/react-router-bootstrap
[npm-badge]: https://badge.fury.io/js/react-router-bootstrap.svg
[npm]: http://badge.fury.io/js/react-router-bootstrap
[rr-v3]: https://github.com/react-bootstrap/react-router-bootstrap/tree/rr-v3
[``]: https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/api/NavLink.md