Add note about when to import bootstrap CSS. (#1618)

* Add note about when to import bootstrap CSS.

* Tweak
This commit is contained in:
Joe Woodhouse
2017-02-24 16:32:29 +00:00
committed by Dan Abramov
parent 646690b2ba
commit 92a068054b

View File

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