html-react-parser
HTML to React parser.
README
html-react-parser
HTML to React parser that works on both the server (Node.js) and the client (browser):
- ```
- HTMLReactParser(string[, options])
- ```
The parser converts an HTML string to one or more React elements.
To replace an element with another element, check out the [replace](#replace) option.
Example
- ```js
- const parse = require('html-react-parser');
- parse('<p>Hello, World!</p>'); // React.createElement('p', {}, 'Hello, World!')
- ```