MCPcopy Create free account
hub / github.com/BetaSu/big-react / createInstance

Function createInstance

packages/react-noop-renderer/src/hostConfig.ts:26–35  ·  view source on GitHub ↗
(type: string, props: Props)

Source from the content-addressed store, hash-verified

24
25// export const createInstance = (type: string, props: any): Instance => {
26export const createInstance = (type: string, props: Props): Instance => {
27 const instance = {
28 id: instanceCounter++,
29 type,
30 children: [],
31 parent: -1,
32 props
33 };
34 return instance;
35};
36
37export const appendInitialChild = (
38 parent: Instance | Container,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected