Remember to Take note that your scripts is going to be operate just once upon the 1st render of your ingredient. If you might want to operate a JavaScript purpose later on - emit the function from your component and pay attention to it in JavaScript as described here) https://laravel-livewire.com/docs/2.x/inline-scripts