Skip to content

Commit cab1472

Browse files
Update README installation instructions with CDN script
Also add examples link.
1 parent 5a5e6cf commit cab1472

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ Parser('<p>Hello, world!</p>');
3131
$ npm install html-react-parser
3232
```
3333

34+
Or you can download the script from a CDN:
35+
36+
```html
37+
<!-- HTMLReactParser depends on React -->
38+
<script src="https://unpkg.com/react@latest/dist/react.min.js"></script>
39+
<script src="https://unpkg.com/html-react-parser@latest/dist/html-react-parser.min.js"></script>
40+
```
41+
42+
See more [examples](https://github.com/remarkablemark/html-react-parser/tree/master/examples).
43+
3444
## Usage
3545

3646
Render to DOM:

0 commit comments

Comments
 (0)