Commit 0dacfe3b authored by Dan Abramov's avatar Dan Abramov Committed by GitHub
Browse files

Minor tweaks

parent 11ec5d63
No related merge requests found
Showing with 3 additions and 5 deletions
+3 -5
...@@ -264,20 +264,18 @@ npm install bootstrap@3 --save ...@@ -264,20 +264,18 @@ npm install bootstrap@3 --save
**Step 2.** Import Bootstrap CSS and optionally Bootstrap theme CSS in the ```index.js``` file. **Step 2.** Import Bootstrap CSS and optionally Bootstrap theme CSS in the ```index.js``` file.
``` ```js
import './index.css';
import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css'; import 'bootstrap/dist/css/bootstrap-theme.css';
``` ```
**Step 3.** Import required React Bootstrap components within ```App.js``` file or your custom component files. **Step 3.** Import required React Bootstrap components within ```App.js``` file or your custom component files.
``` ```js
import React, { Component } from 'react';
import { Navbar, Jumbotron, Button } from 'react-bootstrap'; import { Navbar, Jumbotron, Button } from 'react-bootstrap';
``` ```
Now you are ready to use the imported React Bootstrap components within your component hierarchy defined in the render method. Here is an example [App.js](https://github.com/manavsehgal/react-eshop/blob/master/src/App.js) redone using React Bootstrap. Now you are ready to use the imported React Bootstrap components within your component hierarchy defined in the render method. Here is an example [`App.js`](https://github.com/manavsehgal/react-eshop/blob/master/src/App.js) redone using React Bootstrap.
### Display Lint Output in the Editor ### Display Lint Output in the Editor
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment