Remember to Take note that the scripts will likely be run only once upon the initial render on the element. If you must run a JavaScript function afterwards - emit the party with the part and listen to it in JavaScript as explained below) https://laravel-livewire.com/docs/2.x/inline-scripts