You should Observe that the scripts will probably be run only once on the first render from the component. If you have to run a JavaScript functionality afterwards - emit the function from your component and pay attention to it in JavaScript as described right here) https://laravel-livewire.com/docs/2.x/inline-scripts