You can check by adding below code and if h1 toggled on click then setup was done successfully! <div x-data="{ isOpen: true }"> <button x-on:click=" isOpen = !isOpen">Toggle</button> <h1 x-show="isOpen">Alpinjs</h1> </div>