MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / H

Function H

pkg/vdom/vdom.go:158–167  ·  view source on GitHub ↗
(tag string, props map[string]any, children ...any)

Source from the content-addressed store, hash-verified

156}
157
158func H(tag string, props map[string]any, children ...any) *VDomElem {
159 rtn := &VDomElem{Tag: tag, Props: props}
160 if len(children) > 0 {
161 for _, part := range children {
162 elems := partToElems(part)
163 rtn.Children = append(rtn.Children, elems...)
164 }
165 }
166 return rtn
167}
168
169func E(tag string, parts ...any) *VDomElem {
170 rtn := &VDomElem{Tag: tag}

Callers

nothing calls this directly

Calls 1

partToElemsFunction · 0.85

Tested by

no test coverage detected