/react-router-bootstrap

Integration between React Router and React-Bootstrap

Primary LanguageJavaScriptApache License 2.0Apache-2.0

react-router-bootstrap Travis npm

Integration between React Router and React-Bootstrap.

Usage

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

Installation

$ npm i -S react react-dom react-router react-bootstrap
$ npm i -S react-router-bootstrap

Contributing

See CONTRIBUTING.