Size 400b
$ npm install --save vanilla-htmljs
import html from "vanilla-htmljs";
const box = document.getElementById("box");
box.innerHTML = html`<div>hello world</div>`;
document.body.append(box);
you can install lit-html:
Size 400b
$ npm install --save vanilla-htmljs
import html from "vanilla-htmljs";
const box = document.getElementById("box");
box.innerHTML = html`<div>hello world</div>`;
document.body.append(box);
you can install lit-html:
npm i vanilla-htmljs
0
1.2.0
none
7.65 kB
10