(tag, pendingProps, key, mode)
| 6982 | // 5) It should be easy to port this to a C struct and keep a C implementation |
| 6983 | // compatible. |
| 6984 | var createFiber = function (tag, pendingProps, key, mode) { |
| 6985 | // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors |
| 6986 | return new FiberNode(tag, pendingProps, key, mode); |
| 6987 | }; |
| 6988 | |
| 6989 | function shouldConstruct(Component) { |
| 6990 | return !!(Component.prototype && Component.prototype.isReactComponent); |
no outgoing calls
no test coverage detected