Hi @ndarilek,
Hooks are the way to go, and they can (and actually have to be) linked to specific elements in your LiveView.
The docs cover this:
https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#module-js-interop-and-client-controlled-dom
But you are probably better watching the video of when it was announced to get an overview:
Edit: I haven’t figured out a way to nicely manage different hooks for different pages/views yet (I’m not really that up to speed with JS - that’s why I’m here!!) - I’m sure someone else can help with that.