LiveView and AlpineJS
With the recent support for AlpineJS in LiveView, the two work hand in glove together. And without having to fence-off your JS code with phx-update=ignore
. In this post we explore integrating Phoenix LiveView with JavaScript and AlpineJS.
http://blog.pthompson.org/alpine-js-and-liveview
I think a framework like LiveView has a ton to gain from something like Alpine.
Lots of small interactions don’t warrant a server-roundtrip and there are lots of other times you simply need to use JS and Alpine is the JS-swiss-army-knife for the job.
- Caleb Porzio (creator of AlpineJS and Laravel LiveWire)
Read next Overview of Elixir for new people