JSFiddle - React, Tailwind, and code Playground
HTML
The classic:
<div id="content">…loading</div>
JavaScript
const component = {
el: document.getElementById('content'),
data: { name: 'World' },
render () {
console.log('component renders', this.data)
this.el.innerHTML = `<h1>Hello ${this.data.name}</h1>`
}
}
component.render()