A small parser that converts HTML to React using the DOMParser API.
npm install dom-parser-react

A small parser that converts HTML to React using the DOMParser API.
``bash`
npm i dom-parser-react reactor
yarn add dom-parser-react react
For use with Node.js (e.g., SSR / SSG), install jsdom additionally.
`jsx
import React from 'react'
import DOMParserReact, { parse } from 'dom-parser-react'
// import { renderToStaticMarkup as render } from 'react-dom/server'
const App = () =>
render(
// or
const contents = parse("
HTML Text for parse API
", {
createElement: React.createElement,
Fragment: React.Fragment,
})render(<>{contents}>) //
`
$3
`jsx
import React from 'react'
import DOMParserReact from 'dom-parser-react'
// import { renderToStaticMarkup as render } from 'react-dom/server'const Title = (props) =>
const App = () =>
render( ) //
``