Integration between React Router and React-Bootstrap.
Wrap your React-Bootstrap element in a <LinkContainer>
to make it behave like a React Router <Link>
:
<LinkContainer to={{ pathname: '/foo', query: { bar: 'baz' } }}>
<Button>Foo</Button>
</LinkContainer>
For the equivalent of <IndexLink>
, use <IndexLinkContainer>
.
$ npm i -S react react-dom react-router react-bootstrap
$ npm i -S react-router-bootstrap
See CONTRIBUTING.