Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
92a06805
Commit
92a06805
authored
8 years ago
by
Joe Woodhouse
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Add note about when to import bootstrap CSS. (#1618)
* Add note about when to import bootstrap CSS. * Tweak
parent
646690b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/template/README.md
+3
-1
packages/react-scripts/template/README.md
with
3 additions
and
1 deletion
+3
-1
packages/react-scripts/template/README.md
+
3
-
1
View file @
92a06805
...
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment