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