mint.ts
v0.0.14
Published
[![npm version](https://badge.fury.io/js/mint.ts.svg)](https://www.npmjs.com/package/mint.ts)
Downloads
16
Readme
🍃 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++;
},
},
"+"
),
];
});