Skip to content

Commit 0d5f7f1

Browse files
docs: update bootstrap section to use v4
Closes facebook#3308
1 parent 836bb39 commit 0d5f7f1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: packages/react-scripts/template/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -841,18 +841,18 @@ Alternatively, you can force the linter to ignore any line by adding `// eslint-
841841

842842
## Adding Bootstrap
843843

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 the latest version of Bootstrap with React apps. If you need it, you can integrate it with Create React App by following these steps:
845845

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:
847847

848848
```sh
849-
npm install --save react-bootstrap bootstrap@3
849+
npm install --save reactstrap bootstrap
850850
```
851851

852852
Alternatively you may use `yarn`:
853853

854854
```sh
855-
yarn add react-bootstrap bootstrap@3
855+
yarn add reactstrap bootstrap
856856
```
857857

858858
Import Bootstrap CSS and optionally Bootstrap theme CSS in the beginning of your ```src/index.js``` file:
@@ -864,13 +864,13 @@ import 'bootstrap/dist/css/bootstrap-theme.css';
864864
// components takes precedence over default styles.
865865
```
866866

867-
Import required React Bootstrap components within ```src/App.js``` file or your custom component files:
867+
Import required reactstrap components within ```src/App.js``` file or your custom component files:
868868

869869
```js
870-
import { Navbar, Jumbotron, Button } from 'react-bootstrap';
870+
import { Navbar, Jumbotron, Button } from 'reactstrap';
871871
```
872872

873-
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.
873+
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/TheSharpieOne/fd2b1c7de92f0f442b8692a9c9aa6d3c/raw/57ecd212edd56e2114e4854d21174d6132cf1a0f/App.js) redone using reactstrap.
874874

875875
### Using a Custom Theme
876876

0 commit comments

Comments
 (0)