react-router-bootstrap
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/react-router-bootstrap package

0.26.3 • Public • Published

react-router-bootstrap npm

Integration between React Router v6 and React Bootstrap.

Installation

For React Router v6:

npm install -S react-router-bootstrap

For React Router v4 or v5 (see rr-v4 branch):

npm install -S react-router-bootstrap@rr-v4

For React Router v3 or lower (see rr-v3 branch):

npm install -S react-router-bootstrap@rr-v3

Usage

Wrap your React Bootstrap element in a <LinkContainer> to make it behave like a React Router <Link>

<LinkContainer> accepts same parameters as React Router's <NavLink>

Example

Following plain React Bootstrap component

<Button href="/foo/bar">Foo</Button>

becomes

import { LinkContainer } from 'react-router-bootstrap'
<LinkContainer to="/foo/bar">
  <Button>Foo</Button>
</LinkContainer>

Contributing

See CONTRIBUTING.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.25.026,057rr-v4
0.26.312,710latest
0.23.36,353rr-v3
0.26.0-beta.25next

Version History

VersionDownloads (Last 7 Days)Published
0.26.312,710
0.26.29,899
0.26.11,293
0.26.0103
0.26.0-beta.25
0.26.0-beta.10
0.26.0-beta.00
0.25.026,057
0.24.412,272
0.24.34
0.23.36,353
0.24.219
0.23.298
0.24.10
0.23.1196
0.23.03
0.22.13
0.22.01
0.21.00
0.20.1135
0.20.00
0.19.350
0.19.20
0.19.10
0.19.00
0.18.13
0.18.00
0.17.22
0.17.10
0.17.00
0.16.00
0.15.00
0.14.00
0.13.60
0.13.41
0.13.30
0.13.20
0.13.10
0.13.01
0.12.10
0.12.00
0.11.0118
0.10.01
0.9.12
0.9.00
0.8.30
0.8.23
0.8.10
0.8.00
0.7.20
0.7.10
0.7.00
0.6.00
0.5.00
0.4.60
0.4.50
0.4.40
0.4.30
0.4.20
0.4.10
0.4.00
0.3.10
0.3.00
0.2.00
0.1.00
0.0.30
0.0.20

Package Sidebar

Install

npm i react-router-bootstrap

Weekly Downloads

69,332

Version

0.26.3

License

Apache-2.0

Unpacked Size

88.9 kB

Total Files

8

Last publish

Collaborators

  • monastic.panic
  • taion
  • kytsang
  • idolize
  • vespakoen
  • v6
  • mtscout6