Make sure you note that your scripts will likely be operate only once on the very first render with the part. If you have to operate a JavaScript operate later on - emit the function through the ingredient and pay attention to it in JavaScript as described right here) https://laravel-livewire.com/docs/2.x/inline-scripts