Wire:click not working

Hi, Can someone pls help me out here. I’ve added the wire:click on a button but when I click on it, it does not trigger the action. I’ve been googling and I cant find the answer. Pls help.

If you can post your code, it will be easier to determine what the issue is. Also, make sure your component has a root element. That’s a pretty common issue.

1 Like

Thank you very much! The problem was that I don’t have a root component.

I’m loving Livewire!!!

You just rescued me from Googling everywhere for solution :grinning:
I had to signup to leave this comment. Thanks sirking1991

1 Like