I’m experimenting with Surface, and I converted a LiveComponent into a Surface component. Now I want to use that in an existing LiveView, replacing
<%= live_component @socket, MyComponent, foo: @foo %>
in the .heex file with
<MyComponent foo=@foo />
All the examples I can find show the top-level pages embedding surface components also using Surface.LiveView
- is it a requirement that everything using a surface component be itself converted to a surface component, or is there a way to just embed a surface component into an existing LiveView?