Chris Nelson - LiveView: The javascript you need while keeping the Elixir you love
Leave comments at: https://elixirforum.com/t/elixirconf-2023-chris-nelson-liveview-the-javascript-you-need-while-keeping-the-elixir-you-love/59664 https://2023.elixirconf.com/presenters#speaker-chris-nelson-elixirconf-us-2023 The productivity boost we get from LiveView as elixir devs is pretty spectacular. Sometimes we need dynamic, in-browser behavior beyond what LiveView gives us, which means we need Javascript. The challenge is integrating that javascript in a way that lets us both create the rich user experience we want while maintaining the simplicity and developer experience that LiveView provides. In this session, we’ll cover two specific scenarios that require you to reach for javascript and provide solutions that give us a great experience as Elixir developers. We’ll talk about integrating Javascript in a LiveView application, and we’ll talk about how to maintain LiveView levels of productivity when you aren’t serving your application from Phoenix. We’ll explore why and how Custom HTML Elements give us the ideal abstraction for bridging to javascript in both scenarios. We’ll look at two libraries, `LiveElements` and `LiveState`, that give us what we need in each case. And, of course, we’ll walk through code, for example, applications. We’re going to cram a lot into a short time, so keep your seatbelts fastened and your arms and legs inside the vehicle at all times ;)