MCPcopy Create free account
hub / github.com/cyclejs/cyclejs / wrap

Method wrap

dom/src/VNodeWrapper.ts:33–39  ·  view source on GitHub ↗
(children: Array<VNode>)

Source from the content-addressed store, hash-verified

31 }
32
33 private wrap(children: Array<VNode>) {
34 const {tagName, id, className} = this.rootElement;
35 const selId = id ? `#${id}` : '';
36 const selClass = className ?
37 `.${className.split(` `).join(`.`)}` : '';
38 return h(`${tagName.toLowerCase()}${selId}${selClass}`, {}, children);
39 }
40}

Callers 1

callMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected