0.0.14 • Published 3 months ago
mint.ts v0.0.14
🍃 mint
Frontend framework
Work in progress - not ready for production 🚧
const Counter = cmp(($) => {
const count = $.state(0);
const doubleCount = $.computed(() => count.value * 2);
return [
htm("div", null, "Count is: ", () => count.value),
htm("div", null, "Double count is: ", () => doubleCount.value),
htm(
"button",
{
onClick: () => {
count.value++;
},
},
"+"
),
];
});