const html = htm.bind(html2react);
let reactvdom=html`
<h1 class="foo"
>Foo</h1>
<p><a href="#" style="text-decoration: none;">Bar</a></p>
<p onclick=${()=>{}}>Baz</p>
`
For example, the attribute "class" is converted to "className", and the attribute "style" is converted from a string to an object?the attribute "onclick" is converted to "onClick".
Is there a plug-in to use "html2react" and "htm" together?
https://www.npmjs.com/package/html2react
For example, the attribute "class" is converted to "className", and the attribute "style" is converted from a string to an object?the attribute "onclick" is converted to "onClick".