html2react-json

0.0.1 • Public • Published

html2react-json

Try it live

See also html2jsx

npm i -g html2react-json

html2react-json index.html
html2react-json Icon.svg
import html2reactJSON from 'html2react-json'
 
const html = `<h1 class="hello">Hello JSX</h1>`
 
console.log(html2reactJSON(html))

Note that the programmatic usage will only work in a browser environment. If you want to use it in Node, you will need to wrap it in jsdom. You can take a look at the command line tool implementation for an example of how to do this

Credits

License

The Unlicense

/html2react-json/

    Package Sidebar

    Install

    npm i html2react-json

    Weekly Downloads

    3

    Version

    0.0.1

    License

    Unlicense

    Last publish

    Collaborators

    • xaviervia