Please Notice that the scripts will be run just once on the first render from the component. If you have to run a JavaScript functionality later - emit the occasion in the component and pay attention to it in JavaScript as described right here) https://laravel-livewire.com/docs/2.x/inline-scripts