2.0.3 • Published 3 years ago

vanilla-html v2.0.3

Weekly downloads
17
License
-
Repository
github
Last release
3 years ago

vanilla-html

Only use string build template innerHTML

import { html } from "vanilla-html";

export const App = () => {
  const div = html`
    <div>
      <button class="btn">Click Me</button>
    </div>
  `;

  const btn = div.querySelector < HTMLButtonElement > "button";
  btn.onclick = () => {
    btn.innerHTML += "1";
  };
  return div;
};

document.body.append(App());
2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago