MCPcopy Index your code
hub / github.com/react/react / appendInitialChild

Function appendInitialChild

packages/react-art/src/ReactFiberConfigART.js:260–267  ·  view source on GitHub ↗
(parentInstance, child)

Source from the content-addressed store, hash-verified

258export * from 'react-reconciler/src/ReactFiberConfigWithNoSingletons';
259
260export function appendInitialChild(parentInstance, child) {
261 if (typeof child === 'string') {
262 // Noop for string children of Text (eg <Text>{'foo'}{'bar'}</Text>)
263 throw new Error('Text children should already be flattened.');
264 }
265
266 child.inject(parentInstance);
267}
268
269export function createInstance(type, props, internalInstanceHandle) {
270 let instance;

Callers 1

appendAllChildrenFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected