Skip to content

Commit

Permalink
Add note about when to import bootstrap CSS. (#1618)
Browse files Browse the repository at this point in the history
* Add note about when to import bootstrap CSS.

* Tweak
  • Loading branch information
joewoodhouse authored and Timer committed Feb 24, 2017
1 parent fb94589 commit 5ee655b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,11 +560,13 @@ npm install react-bootstrap --save
npm install bootstrap@3 --save
```

Import Bootstrap CSS and optionally Bootstrap theme CSS in the ```src/index.js``` file:
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';
// Put any other imports below so that CSS from your
// components takes precedence over default styles.
```

Import required React Bootstrap components within ```src/App.js``` file or your custom component files:
Expand Down

0 comments on commit 5ee655b

Please sign in to comment.