A lightweight, but powerful HTML template library for JS.
Create UI elements in a declarative way, similar to JSX, but with no transpiling or dependencies.
View Demo
·
Report Bug
·
Request Feature
import html from "https://cdn.jsdelivr.net/gh/jdboris/htmljs@latest/html.js";
const Button = () => html`<button>Submit</button>`;
const Form = () => html`
<form
${{
onsubmit: () => {
console.log("Submission!");
},
}}
>
${Button()}
</form>
`;
document.body.append(Form());