Exemple alpine js onclick


<button x-on:click="alert('Hello World!')">Say Hi</button>

<button @click="alert('Hello World!')">Say Hi</button>
KostasX