react-router-bootstrap

WebJar for react-router-bootstrap

License

License

Categories

Categories

React User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

react-router-bootstrap
Last Version

Last Version

0.13.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.bower/react-router-bootstrap/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>react-router-bootstrap</artifactId>
    <version>0.13.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/react-router-bootstrap/
implementation 'org.webjars.bower:react-router-bootstrap:0.13.4'
// https://jarcasting.com/artifacts/org.webjars.bower/react-router-bootstrap/
implementation ("org.webjars.bower:react-router-bootstrap:0.13.4")
'org.webjars.bower:react-router-bootstrap:jar:0.13.4'
<dependency org="org.webjars.bower" name="react-router-bootstrap" rev="0.13.4">
  <artifact name="react-router-bootstrap" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='react-router-bootstrap', version='0.13.4')
)
libraryDependencies += "org.webjars.bower" % "react-router-bootstrap" % "0.13.4"
[org.webjars.bower/react-router-bootstrap "0.13.4"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower : react-bootstrap jar [0.15,)
org.webjars.bower : react-router jar [0.13.1,)

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.bower

react-bootstrap

The popular front-end framework, rebuilt with React

Versions

Version
0.13.4