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

Commit 509a65c

Browse files
gaearontleunen
authored andcommitted
docs: Add instructions for Create React App (#388)
* Add instructions for Create React App * Update README.md
1 parent a00a538 commit 509a65c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,22 @@ If you're worried about the changes we made, you can take a look at the [patch n
1414
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
1515
```
1616

17+
### Create React App
18+
19+
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`.
20+
If you use it, add only this one line to your HTML:
21+
22+
```html
23+
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
24+
```
25+
26+
Then add these lines to `src/index.js`:
27+
28+
```js
29+
import 'react-mdl/extra/material.css';
30+
import 'react-mdl/extra/material.js';
31+
```
32+
1733
## Installation
1834

1935
`npm install --save react-mdl`

0 commit comments

Comments
 (0)