點燈坊

うまく使いさえすれば、時間はいつも十分にある

タグ : Alpine

Using x-effect to Simulate x-html

x-effect is a useful directive for re-evaluating an expression when one of its dependencies change. You can think of it as a watcher where you don’t have to specify what property to watch, it will watch all properties used within it.

Alpine Overview

Alpine is a lightweight framework for pure HTML pages. It is very small, and only 6kb is required. We can implement Alpine by TailwindCSS, Vue or Svelte style.