From bcd6dd79c2c7c212f17786e3effc23cb2f2d6573 Mon Sep 17 00:00:00 2001 From: Joe Woodhouse Date: Fri, 24 Feb 2017 16:32:29 +0000 Subject: [PATCH] Add note about when to import bootstrap CSS. (#1618) * Add note about when to import bootstrap CSS. * Tweak --- packages/react-scripts/template/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 2ca5f05404c..1ef9f8dc478 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -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: