MCPcopy Create free account
hub / github.com/chipnertkj/chipbox / createElement

Function createElement

node/chipbox-solid-render/src/renderer.ts:6–14  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

4
5/** Create an element with the given tag. */
6export function createElement(tag: string): JSX.Element {
7 return {
8 type: "box",
9 id: undefined,
10 children: undefined,
11 width: "0su",
12 height: "0su",
13 };
14}
15
16/** Create a text node with the given contents. */
17export function createTextNode(value: string): JSX.Element {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected