diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.js b/packages/react-reconciler/src/ReactFiberWorkLoop.js index 71e6f4feabe41..8c2c85a4e5c4c 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.js @@ -2386,7 +2386,10 @@ function replaySuspendedUnitOfWork(unitOfWork: Fiber): void { // TODO: Consider moving this switch statement into that module. Also, // could maybe use this as an opportunity to say `use` doesn't work with // `defaultProps` :) - const Component = unitOfWork.type; + const Component = + unitOfWork.tag === FunctionComponent + ? unitOfWork.type + : unitOfWork.type.render; const unresolvedProps = unitOfWork.pendingProps; const resolvedProps = unitOfWork.elementType === Component