Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
docs: Add instructions for Create React App (#388)
Browse files Browse the repository at this point in the history
* Add instructions for Create React App

* Update README.md
  • Loading branch information
gaearon authored and tleunen committed Sep 4, 2016
1 parent a00a538 commit 509a65c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@ If you're worried about the changes we made, you can take a look at the [patch n
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
```

### Create React App

The above instructions won’t work if you use [Create React App](https://github.com/facebookincubator/create-react-app) with `react-scripts` higher than `0.4.0`.
If you use it, add only this one line to your HTML:

```html
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
```

Then add these lines to `src/index.js`:

```js
import 'react-mdl/extra/material.css';
import 'react-mdl/extra/material.js';
```

## Installation

`npm install --save react-mdl`
Expand Down

0 comments on commit 509a65c

Please sign in to comment.