Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -846,20 +846,21 @@ You don’t have to use [React Bootstrap](https://react-bootstrap.github.io) tog
Install React Bootstrap and Bootstrap from npm. React Bootstrap does not include Bootstrap CSS so this needs to be installed as well:

```sh
npm install --save react-bootstrap bootstrap@3
npm install bootstrap@4

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This contradicts the line above, which says "Install React Bootstrap and Bootstrap from npm" (not just install Bootstrap). To use Bootstrap 4 (which is not yet supported by React Bootstrap), reactstrap is a popular option.

Copy link
Contributor

@nickserv nickserv May 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to recommend Reactstrap for now.

```

Alternatively you may use `yarn`:

```sh
yarn add react-bootstrap bootstrap@3
yarn add bootstrap@4.0.0-alpha.6

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why alpha?

```

Import Bootstrap CSS and optionally Bootstrap theme CSS in the beginning of your ```src/index.js``` file:

```js
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import 'bootstrap/dist/css/bootstrap-grid.css';
import 'bootstrap/dist/css/bootstrap-reboot.css';
// Put any other imports below so that CSS from your
// components takes precedence over default styles.
```
Expand Down