|
|
|
|
|
by freedomben
1204 days ago
|
|
This is what I came to say as well. Phoenix is not LiveView and LiveView is not Phoenix! And even when LiveView is used, there's no reason whatsoever that you can't still use whatever JS client-side thing you want for things when you need it. There are increasingly more built-in JS functions available that run client-side, and Alpine.js in particular fits neatly into Phoenix and lets you do a ton of stuff. I always add Alpine and use it for menus and other stuff. If the action doesn't need data from the server, I do it client-side in Alpine. IMHO way too many people think of LiveView as a total replacement for javascript that is all or nothing, but that's a bad approach. |
|