Minor tweaks

This commit is contained in:
Dan Abramov
2016-08-03 19:36:45 +01:00
parent d9d6c926f8
commit 4530302e48

View File

@@ -244,20 +244,18 @@ npm install bootstrap@3 --save
**Step 2.** Import Bootstrap CSS and optionally Bootstrap theme CSS in the ```index.js``` file.
```
import './index.css';
```js
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
```
**Step 3.** Import required React Bootstrap components within ```App.js``` file or your custom component files.
```
import React, { Component } from 'react';
```js
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