Skip to content

Commit 5ee655b

Browse files
joewoodhouseTimer
authored andcommitted
Add note about when to import bootstrap CSS. (#1618)
* Add note about when to import bootstrap CSS. * Tweak
1 parent fb94589 commit 5ee655b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-scripts/template/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -560,11 +560,13 @@ npm install react-bootstrap --save
560560
npm install bootstrap@3 --save
561561
```
562562

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

565565
```js
566566
import 'bootstrap/dist/css/bootstrap.css';
567567
import 'bootstrap/dist/css/bootstrap-theme.css';
568+
// Put any other imports below so that CSS from your
569+
// components takes precedence over default styles.
568570
```
569571

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

0 commit comments

Comments
 (0)