html-to-react-parser
v0.0.2
Published
My bedazzling module
Downloads
63
Readme
html2react
My bedazzling module
Install
$ npm install html2react
Usage
const html2react = require("html2react");
html2react('<div className="row"></div>');
//=> '<Row></Row>'
API
html2react(input, options?)
input
Type: string
Lorem ipsum.
options
Type: object
foo
Type: boolean
Default: false
Lorem ipsum.
CLI
$ npm install --global html2react
$ html2react --help
Usage
html2react [input]
Options
--foo Lorem ipsum [Default: false]
Examples
$ html2react
unicorns & rainbows
$ html2react ponies
ponies & rainbows