Tweak ReactTypeOfWork order (#13444)

This commit is contained in:
Dan Abramov
2018-08-20 16:51:09 +01:00
committed by GitHub
parent 973496b40c
commit e8571c798d
+5 -5
View File
@@ -26,11 +26,11 @@ export type TypeOfWork =
| 15
| 16;
export const IndeterminateComponent = 0; // Before we know whether it is functional or class
export const FunctionalComponent = 1;
export const FunctionalComponentLazy = 2;
export const ClassComponent = 3;
export const ClassComponentLazy = 4;
export const FunctionalComponent = 0;
export const FunctionalComponentLazy = 1;
export const ClassComponent = 2;
export const ClassComponentLazy = 3;
export const IndeterminateComponent = 4; // Before we know whether it is functional or class
export const HostRoot = 5; // Root of a host tree. Could be nested inside another node.
export const HostPortal = 6; // A subtree. Could be an entry point to a different renderer.
export const HostComponent = 7;