Skip to content

Commit e9bd7f7

Browse files
Update README with installation, testing, and license information
1 parent 2587326 commit e9bd7f7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
11
# html-react-parser
2+
3+
An HTML to React parser.
4+
5+
```js
6+
var Parser = require('html-react-parser');
7+
var reactElement = Parser('<p>Hello, world!</p>');
8+
9+
// ReactDOM.render(reactElement, node);
10+
```
11+
12+
## Installation
13+
14+
```sh
15+
$ npm install html-react-parser
16+
```
17+
18+
## Testing
19+
20+
```sh
21+
$ npm test
22+
```
23+
24+
## License
25+
26+
[MIT](https://github.com/remarkablemark/html-react-parser/blob/master/LICENSE)

0 commit comments

Comments
 (0)