Coder Social home page Coder Social logo

actual-react-router-bootstrap's Introduction

react-router-bootstrap

Integration between React Router and React-Bootstrap.

Build Status npm version

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>

To disable the element and the link, set the disabled prop on the LinkContainer. For the equivalent of IndexLink, use IndexLinkContainer.

As with React Router's Link, returning false from an onClick handler on LinkContainer will prevent the transition. However, this behavior will not apply to any onClick on the child, which instead will have to call event.preventDefault() explicitly to prevent the transition.

Installation

Note: Releases from v0.20.0 onward only support React Router v2.x. For React Router 1.x support, use v0.19.3 or earlier.

npm install react-router-bootstrap

You will also want to have React Router and React-Bootstrap.

npm install react-router react-bootstrap

Contributing

See CONTRIBUTING.

actual-react-router-bootstrap's People

Contributors

aabenoja avatar alexkval avatar bryanlarsen avatar c0dr avatar cwbuecheler avatar dozoisch avatar heydiplo avatar idolizesc avatar jquense avatar kirill-konshin avatar manuel-woelker avatar mattgruter avatar mdziekon avatar merk avatar mtscout6 avatar raisedadead avatar ruanwz avatar shitalm avatar taion avatar vespakoen avatar vinnymac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.