mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-28 09:25:42 +08:00
Add note about when to import bootstrap CSS. (#1618)
* Add note about when to import bootstrap CSS. * Tweak
This commit is contained in:
committed by
Dan Abramov
parent
646690b2ba
commit
92a068054b
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user