Pattern 2
(elem *vdom.VDomElem, comp **ComponentImpl, containingComp string, opts *RenderOpts)
| 77 | |
| 78 | // Pattern 2 |
| 79 | func (r *RootElem) renderSimple(elem *vdom.VDomElem, comp **ComponentImpl, containingComp string, opts *RenderOpts) { |
| 80 | if (*comp).RenderedComp != nil { |
| 81 | // Clear Comp since base elements don't use it |
| 82 | r.unmount(&(*comp).RenderedComp) |
| 83 | } |
| 84 | (*comp).Children = r.renderChildren(elem.Children, (*comp).Children, containingComp, opts) |
| 85 | } |
| 86 | |
| 87 | // Pattern 3 |
| 88 | func (r *RootElem) renderComponent(cfunc any, elem *vdom.VDomElem, comp **ComponentImpl, opts *RenderOpts) { |
no test coverage detected