treycordova / nativejsx

JSX to native DOM API transpilation. :yellow_heart: <div> ⟹ document.createElement('div')!
MIT License
154 stars 14 forks source link

Can't inject HTML #32

Open rwoodnz opened 5 years ago

rwoodnz commented 5 years ago

Can't see a way to inject HTML

Expecting this to do it:

const htmlStuff = '<div>hi<div>'
<div dangerouslySetInnerHTML={{ __html: htmlStuff }} />;

Looking for: <div>hi<div>

Ends up with: <div dangerouslysetinnerhtml="[object Object]"></div>