react-router-bootstrap

WebJar for react-router-bootstrap

License

License

Categories

Categories

React User Interface Web Frameworks
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

react-router-bootstrap
Last Version

Last Version

0.24.4
Release Date

Release Date

Type

Type

jar
Description

Description

react-router-bootstrap
WebJar for react-router-bootstrap
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/react-bootstrap/react-router-bootstrap

Download react-router-bootstrap

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/react-router-bootstrap/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>react-router-bootstrap</artifactId>
    <version>0.24.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/react-router-bootstrap/
implementation 'org.webjars.npm:react-router-bootstrap:0.24.4'
// https://jarcasting.com/artifacts/org.webjars.npm/react-router-bootstrap/
implementation ("org.webjars.npm:react-router-bootstrap:0.24.4")
'org.webjars.npm:react-router-bootstrap:jar:0.24.4'
<dependency org="org.webjars.npm" name="react-router-bootstrap" rev="0.24.4">
  <artifact name="react-router-bootstrap" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='react-router-bootstrap', version='0.24.4')
)
libraryDependencies += "org.webjars.npm" % "react-router-bootstrap" % "0.24.4"
[org.webjars.npm/react-router-bootstrap "0.24.4"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : prop-types jar [15.5.10,16)

Project Modules

There are no modules declared in this project.

react-router-bootstrap Travis npm

Integration between React Router v4 and React Bootstrap.

Installation

For React Router v4:

npm install -S react-router-bootstrap

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>

Please note that by default React Router will match any location that contains path specified in to prop. To make <LinkContainer> to match the location exactly, set exact prop to true or use <IndexLinkContainer> instead.

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.

org.webjars.npm

react-bootstrap

The popular front-end framework, rebuilt with React

Versions

Version
0.24.4
0.24.2
0.23.1
0.23.0
0.22.1
0.21.0
0.20.1
0.20.0
0.19.3
0.19.2
0.19.0
0.18.1