HyperScript

HyperScript is an a language enables the creation of Virtual DOM objects.

Something like this

const msg = "hi hyperscript";
h("div", { class: "container" }, [
    h("p", {}, msg),
    h("button", {}, "Ok"),
]);