MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / createFiber

Function createFiber

code/composition/public/app.js:7029–7032  ·  view source on GitHub ↗
(tag, pendingProps, key, mode)

Source from the content-addressed store, hash-verified

7027// 5) It should be easy to port this to a C struct and keep a C implementation
7028// compatible.
7029var createFiber = function (tag, pendingProps, key, mode) {
7030 // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
7031 return new FiberNode(tag, pendingProps, key, mode);
7032};
7033
7034function shouldConstruct(Component) {
7035 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