Remember to Observe that the scripts will likely be operate only once upon the initial render with the part. If you might want to operate a JavaScript purpose later on - emit the function with the element and listen to it in JavaScript as explained below) https://laravel-livewire.com/docs/2.x/inline-scripts