You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: template/README.md
+7-8
Original file line number
Diff line number
Diff line change
@@ -841,36 +841,35 @@ Alternatively, you can force the linter to ignore any line by adding `// eslint-
841
841
842
842
## Adding Bootstrap
843
843
844
-
You don’t have to use [React Bootstrap](https://react-bootstrap.github.io) together with React but it is a popular library for integrating Bootstrap with React apps. If you need it, you can integrate it with Create React App by following these steps:
844
+
You don’t have to use [reactstrap](https://reactstrap.github.io/) together with React but it is a popular library for integrating Bootstrap with React apps. If you need it, you can integrate it with Create React App by following these steps:
845
845
846
-
Install React Bootstrap and Bootstrap from npm. React Bootstrap does not include Bootstrap CSS so this needs to be installed as well:
846
+
Install reactstrap and Bootstrap from npm. reactstrap does not include Bootstrap CSS so this needs to be installed as well:
847
847
848
848
```sh
849
-
npm install --save react-bootstrap bootstrap@3
849
+
npm install --save reactstrap bootstrap@4
850
850
```
851
851
852
852
Alternatively you may use `yarn`:
853
853
854
854
```sh
855
-
yarn add react-bootstrap bootstrap@3
855
+
yarn add bootstrap@4 reactstrap
856
856
```
857
857
858
858
Import Bootstrap CSS and optionally Bootstrap theme CSS in the beginning of your ```src/index.js``` file:
859
859
860
860
```js
861
861
import'bootstrap/dist/css/bootstrap.css';
862
-
import'bootstrap/dist/css/bootstrap-theme.css';
863
862
// Put any other imports below so that CSS from your
864
863
// components takes precedence over default styles.
865
864
```
866
865
867
-
Import required React Bootstrap components within ```src/App.js``` file or your custom component files:
866
+
Import required reactstrap components within ```src/App.js``` file or your custom component files:
Now you are ready to use the imported React Bootstrap components within your component hierarchy defined in the render method. Here is an example [`App.js`](https://gist.githubusercontent.com/gaearon/85d8c067f6af1e56277c82d19fd4da7b/raw/6158dd991b67284e9fc8d70b9d973efe87659d72/App.js) redone using React Bootstrap.
872
+
Now you are ready to use the imported reactstrap components within your component hierarchy defined in the render method. Here is an example [`App.js`](https://gist.githubusercontent.com/zx6658/d9f128cd57ca69e583ea2b5fea074238/raw/a56701c142d0c622eb6c20a457fbc01d708cb485/App.js) redone using reactstrap.
0 commit comments