mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Tweak ReactTypeOfWork order (#13444)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user