Web Components

Another great way to utilize JavaScript inside Livewire components is HTML5 Web Components. This strategy is preffered to most others because Web Components automatically scope JS and styles to each individual component, so there are no conflicts with Livewire.

Building and using Web Components is outside the scope of this documentation, but the lit-element project is a great starting point for writing and using web components easily.

← Previous Topic

Third-Party Libraries

Next Topic →