Remember to Take note that your scripts will probably be operate only once on the very first render of your element. If you might want to run a JavaScript functionality later - emit the party from your ingredient and listen to it in JavaScript as explained here) https://laravel-livewire.com/docs/2.x/inline-scripts