Remember to Be aware that your scripts might be operate just once upon the 1st render with the part. If you'll want to operate a JavaScript operate later - emit the event within the part and hear it in JavaScript as described below) https://laravel-livewire.com/docs/2.x/inline-scripts