Be sure to Take note that your scripts is going to be run only once upon the initial render on the part. If you'll want to operate a JavaScript operate later - emit the event from the ingredient and hear it in JavaScript as described in this article) https://laravel-livewire.com/docs/2.x/inline-scripts