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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Integration between React Router v4 and React Bootstrap.
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
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.
Following plain React Bootstrap component
ton href="/foo/bar">Foo</Button>
becomes
kContainer to="/foo/bar">
utton>Foo</Button>
nkContainer>
See CONTRIBUTING.