I’m just getting into Live View and really enjoying the experience. I wondered though - what are people using for front end ui components? I thinking of things like Date Pickers, Time Pickerrs. I’ve seens some Live View only components but I think that for things like a date picker it would be better to do in the front end.
Either use with phx-hook or html “custom element”, you may not need hook since “custom element” has a bunch of callback such as connectedCallback, disconnectedCallback, attributeChangedCallback. For example, patching html attribute from liveview server will trigger that last callback, and when it’s removed from document you can dispose *EventListener inside disconnectedCallback callback.
I am avoiding unnecessary packages/plugins and using Alphine.js wherever possible.
I am searching for an alternative to select2, if readers know an easy way over jQuery.