Remember to Take note that your scripts will likely be operate only once on the primary render from the component. If you might want to run a JavaScript purpose later - emit the celebration in the part and listen to it in JavaScript as explained here) https://laravel-livewire.com/docs/2.x/inline-scripts