MCPcopy
hub / github.com/BuilderIO/mitosis / parseNodes

Function parseNodes

packages/core/src/helpers/parse-node.ts:10–16  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

8 `).children[0];
9};
10export const parseNodes = (str: string) => {
11 return parseJsx(`
12 export default function MyComponent() {
13 return (<>${str}</>)
14 }
15 `).children[0].children;
16};

Callers

nothing calls this directly

Calls 1

parseJsxFunction · 0.90

Tested by

no test coverage detected