🧩 Even better Eich
See index.ts
.
import { eich, ref } from './eich'
const root = document.querySelector<HTMLDivElement>('#app')!
// Each
const app = eich`
<var key="count" $value="0"></var>
<button @click="count += 1">
Count <value $data="count" />
</button>
`
root.append(...app)
// Hybrid
function Count() {
const count = ref(0)
const handleClick = () => count.value += 1
return eich`
<button @click="${handleClick}()">
Click Me! Count: <value $data="${count}" />
</button>
`
}
root.append(...Count())