react-router-bootstrap

Integration between React Router and React-Bootstrap

  • 所有者: react-bootstrap/react-router-bootstrap
  • 平台:
  • 許可證: Apache License 2.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

react-router-bootstrap Travis npm

Integration between React Router v4 and React Bootstrap.

Installation

For React Router v4:

npm install -S react-router-bootstrap

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

npm 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

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

becomes

import { LinkContainer } from 'react-router-bootstrap'
<LinkContainer to="/foo/bar">
  <Button>Foo</Button>
</LinkContainer>

Contributing

See CONTRIBUTING.

主要指標

概覽
名稱與所有者react-bootstrap/react-router-bootstrap
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證Apache License 2.0
所有者活动
創建於2014-08-05 11:56:46
推送於2025-06-06 21:25:31
最后一次提交2024-06-27 16:28:44
發布數69
最新版本名稱v0.26.3 (發布於 2024-06-27 16:28:44)
第一版名稱v0.0.1 (發布於 2014-08-05 06:32:08)
用户参与
星數1.7k
關注者數35
派生數163
提交數365
已啟用問題?
問題數177
打開的問題數16
拉請求數101
打開的拉請求數13
關閉的拉請求數37
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?