Hi all,
I have a function component <Module.component />
.
I have some JS logic attached to that component.
If I use Module.component
in a live view, I would love to run the JS logic every time the view is mounted, is that possible?
I mean, I know I can use phx-hook
in a live component, but is there a solution for function components?
Thank you