<div x-data="{toggle: false}">
<button x-on:click="toggle = !toggle">
Munculkan text
</button>
<p x-show="toggle">
Hello world
</p>
</div>
This Pen is owned by AlphaBeta on CodePen.
See more by @alphabeta1906 on CodePen
This Pen doesn't use any external CSS resources.