0.0.8 • Published 1 year ago

smlr v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

npm version npm bundle size

Frontend framework

Work in progress - not ready for production 🚧

import { render, cp, htm, signal, computed } from "smlr";

const Counter = cp(() => {
  const count = signal(0);
  const doubleCount = computed(() => count.value * 2);

  return [
    htm("div", { node: ["Count is: ", () => count.value] }),
    htm("div", { node: ["Double count is: ", () => doubleCount.value] }),
    htm("button", {
      onClick: () => {
        count.value++;
      },
      node: "+",
    }),
  ];
});

render(Counter(), container);
0.0.8

1 year ago

0.0.7

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.6

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago