react-bootstrap/react-router-bootstrap-bower

Name: react-router-bootstrap-bower

Owner: react-bootstrap

Description: AMD modules and browser globals of react-router and react-bootstrap compatible components

Created: 2015-07-10 21:30:14.0

Updated: 2017-04-18 23:04:36.0

Pushed: 2017-09-08 21:19:32.0

Homepage: null

Size: 165

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

react-router-bootstrap Travis npm

Integration between React Router v4 and React Bootstrap.

Installation

For React Router v4:

install -S react-router-bootstrap

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

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

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

becomes

kContainer to="/foo/bar">
utton>Foo</Button>
nkContainer>
Contributing

See CONTRIBUTING.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.