We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React-bootstrap官方文档
npm install --save react react-dom npm install --save react-bootstrap
在主页引入CSS样式
<!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css">
import Button from 'react-bootstrap/lib/Button'; //或者 import { Button } from 'react-bootstrap';//推荐这种
比如我需要使用按钮的这几个组件
//引入ButtonGroup和Button组件 import {ButtonGroup,Button} from 'react-bootstrap'; //使用ButtonGroup和Button组件 const About = () => ( <div> <h2>关于</h2> <ButtonGroup vertical block> <Button>Full width button</Button> <Button>Full width button</Button> </ButtonGroup> </div> )
查看其它组件
The text was updated successfully, but these errors were encountered:
No branches or pull requests
React-bootstrap官方文档
安装
引入样式
在主页引入CSS样式
使用组件
比如我需要使用按钮的这几个组件
组件文档
查看其它组件
The text was updated successfully, but these errors were encountered: