https://github.com/react-bootstrap/react-router-bootstrap
Integration between React Router and React-Bootstrap
https://github.com/react-bootstrap/react-router-bootstrap
Last synced: 11 months ago
JSON representation
Integration between React Router and React-Bootstrap
- Host: GitHub
- URL: https://github.com/react-bootstrap/react-router-bootstrap
- Owner: react-bootstrap
- License: apache-2.0
- Created: 2014-08-05T11:56:46.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-10-26T06:57:32.000Z (over 1 year ago)
- Last Synced: 2024-10-29T14:56:36.958Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.38 MB
- Stars: 1,692
- Watchers: 36
- Forks: 158
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- Developer-Handbook - React Router Bootstrap - router) v4 and React Bootstrap. (Tools / Mesh networks)
README
# react-router-bootstrap [![npm][npm-badge]][npm]
Integration between [React Router] v6 and [React Bootstrap].
## Installation
For React Router v6:
```sh
npm install -S react-router-bootstrap
```
For React Router v4 or v5 (see [rr-v4] branch):
```sh
npm install -S react-router-bootstrap@rr-v4
```
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 [``]
## Example
Following plain React Bootstrap component
```js
Foo
```
becomes
```js
import { LinkContainer } from 'react-router-bootstrap'
Foo
```
## Contributing
See [CONTRIBUTING](CONTRIBUTING.md).
[React Router]: https://github.com/remix-run/react-router
[React Bootstrap]: https://github.com/react-bootstrap/react-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
[rr-v4]: https://github.com/react-bootstrap/react-router-bootstrap/tree/rr-v4
[``]: https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/api/NavLink.md