Skip to content

Instantly share code, notes, and snippets.

@Jokcy
Created December 3, 2018 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jokcy/ab3ea66617b5b4e3c482d576522e72bf to your computer and use it in GitHub Desktop.
Save Jokcy/ab3ea66617b5b4e3c482d576522e72bf to your computer and use it in GitHub Desktop.
react work tah
export const FunctionComponent = 0;
export const ClassComponent = 1;
export const IndeterminateComponent = 2; // Before we know whether it is function or class
export const HostRoot = 3; // Root of a host tree. Could be nested inside another node.
export const HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
export const HostComponent = 5;
export const HostText = 6;
export const Fragment = 7;
export const Mode = 8;
export const ContextConsumer = 9;
export const ContextProvider = 10;
export const ForwardRef = 11;
export const Profiler = 12;
export const SuspenseComponent = 13;
export const MemoComponent = 14;
export const SimpleMemoComponent = 15;
export const LazyComponent = 16;
export const IncompleteClassComponent = 17;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment