when we are using @push('scripts') in laravel livewire components blade file.


@push('scripts')
<scripts>
 // Your JS here.
</scripts>
@endpush 

Then following lines need to be added in layout file app.blade.php for @push('scripts') to work.

Add these lines in layout file "app.blade.php"

@stack('scripts')

and

@stack('styles')

If you are looking for Reusable Livewire Components checkout LivewireDemos.

Comments