Pattern 1
(text string, comp **ComponentImpl)
| 69 | |
| 70 | // Pattern 1 |
| 71 | func (r *RootElem) renderText(text string, comp **ComponentImpl) { |
| 72 | // No need to clear Children/Comp - text components cannot have them |
| 73 | if (*comp).Text != text { |
| 74 | (*comp).Text = text |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | // Pattern 2 |
| 79 | func (r *RootElem) renderSimple(elem *vdom.VDomElem, comp **ComponentImpl, containingComp string, opts *RenderOpts) { |