MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / createFiber

Function createFiber

code/new-context-api/public/app.js:6252–6255  ·  view source on GitHub ↗
(tag, pendingProps, key, mode)

Source from the content-addressed store, hash-verified

6250// 5) It should be easy to port this to a C struct and keep a C implementation
6251// compatible.
6252var createFiber = function (tag, pendingProps, key, mode) {
6253 // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
6254 return new FiberNode(tag, pendingProps, key, mode);
6255};
6256
6257function shouldConstruct(Component) {
6258 return !!(Component.prototype && Component.prototype.isReactComponent);

Callers 7

createWorkInProgressFunction · 0.70
createHostRootFiberFunction · 0.70
createFiberFromElementFunction · 0.70
createFiberFromFragmentFunction · 0.70
createFiberFromTextFunction · 0.70
createFiberFromPortalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected