react-starter-kit https://github.com/kriasoft/react-starter-kit
reactstrap http://reactstrap.github.io/
将reactstrap安装到react-starter-kit中的步骤是什么?为了使用网格布局?
http://reactstrap.github.io/components/layout/
发布于 2018-01-25 14:44:43
步骤:
yarn add reactstrap
yarn add react-transition-group
yarn add bootstrapimport 'bootstrap/dist/css/bootstrap.css';
import { Container, Row, Col } from 'reactstrap';<Container>
<Row>
<Col>.col</Col>
</Row>
<Row>
<Col>.col</Col>
<Col>.col</Col>
<Col>.col</Col>
<Col>.col</Col>
</Row>
<Row>
<Col xs="3">.col-3</Col>
<Col xs="auto">.col-auto - variable width content</Col>
<Col xs="3">.col-3</Col>
</Row>
</Container>发布于 2018-01-22 22:46:04
使用create-react-app怎么样?这就是我正在使用的.
npm install -g create-react-app
create-react-app my-app然后,按照reactstrap的README上的说明安装bootstrap、reactstrap、react和react-dom:
npm install --save reactstrap@next react-addons-transition-group
react-addons-css-transition-group bootstrap@4.0.0-beta.2
react-dom@^16.0.0希望这能帮到你。
发布于 2021-05-29 02:04:23
假设您使用的是npm而不是yarn
npm i --save reactstrap # (http://reactstrap.github.io/)
npm i --save react-bootstrap bootstrap # (https://react-bootstrap.github.io/)
npm install --save reactstrap react react-dom # (http://reactstrap.github.io/);但我认为最后一个就是你要找的。
https://stackoverflow.com/questions/48247229
复制相似问题