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

Add instructions for Create React App #388

Merged
merged 2 commits into from
Sep 4, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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