Socket
Socket
Sign inDemoInstall

react-router-bootstrap

Package Overview
Dependencies
11
Maintainers
7
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-router-bootstrap

Integration between React Router and React-Bootstrap


Version published
Weekly downloads
69K
decreased by-4.76%
Maintainers
7
Install size
229 kB
Created
Weekly downloads
 

Changelog

Source

0.26.2 (2022-07-11)

Bug Fixes

  • enable empty pathname and state propagation (#303) (f85c697)

Readme

Source

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.

Keywords

FAQs

Last updated on 11 Jul 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc