JSFiddle - React, Tailwind, and code Playground
by Josh Pullen
HTML
<script src="https://cdn.tailwindcss.com"></script>
JavaScript
import { html, render } from "https://unpkg.com/htm/preact/standalone.module.js";
function App() {
const
return html`
<table>
<thead>
<tr>
<th>Make a plan</th>
<th>Friends</th>
<th>Exercise</th>
<th>Shower</th>
<th>Eat veggies</th>
<th>Rocket Spelling</th>
<th>Clown School</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="checkbox" /></td>
</tr>
</tbody>
</table>
`;
}
render(html`<${App} />`, document.body);