Fix wrong Flow return type

This commit is contained in:
Andrew Clark committed 2018-08-16 09:29:17 -07:00
1 parent 5031ebf6be
commit 2b30828000
1 file changed
+1 -1
+1 -1
View File
@@ -294,7 +294,7 @@ function shouldConstruct(Component: Function) {
export function resolveLazyComponentTag(
fiber: Fiber,
Component: Function,
): void {
): TypeOfWork {
if (typeof Component === 'function') {
return shouldConstruct(Component)
? ClassComponentLazy