JSFiddle - React, Tailwind, and code Playground
Babel + JSX
/** @jsx h */
function h(type, props, ...children) {
return { type, props, children}
}
const dom = (
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
)
console.log(dom)
/** @jsx h */
function h(type, props, ...children) {
return { type, props, children}
}
const dom = (
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
)
console.log(dom)