sinuous

by luwes

HTML

<script type="module">
import { o, html } from "https://unpkg.com/sinuous?module";

function Profile() {
  const s = o({
  	c: 0
  });
  const name = o("World");
  const age = o(0);
  return html`
    <h1>Hello, ${name}!, ${age}, ${() => JSON.stringify(s())}</h1>
  `;
}

document.body.append(
  html`
    ${Profile()}
    ${Profile()}
    ${Profile()}
  `
);
</script>