Setting up a "scripts" stack
@stack('scripts') inside your Blade layout file.
... @livewireAssets @stack('scripts') </head>
Pushing to the scripts stack
Now, from your component's Blade view, you can push to the
@this blade directive in your component's view.
Here's an example: