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