Home / Function/ ElementTypes() — react Function Reference

ElementTypes() — react Function Reference

Architecture documentation for the ElementTypes() function in index.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  ec8d474b_1323_06ba_8192_f093097700c3["ElementTypes()"]
  00568843_3949_1727_d0d0_78bc6c834b68["index.js"]
  ec8d474b_1323_06ba_8192_f093097700c3 -->|defined in| 00568843_3949_1727_d0d0_78bc6c834b68
  style ec8d474b_1323_06ba_8192_f093097700c3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shell/src/app/ElementTypes/index.js lines 55–76

export default function ElementTypes(): React.Node {
  return (
    <Profiler id="test" onRender={() => {}}>
      <Fragment>
        <Context.Provider value={'def'}>
          <Context.Consumer>{(value: $FlowFixMe) => null}</Context.Consumer>
        </Context.Provider>
        <StrictMode>
          <Suspense fallback={<div>Loading...</div>}>
            <ClassComponent />
            <FunctionComponent />
            <MemoFunctionComponent />
            <ForwardRefComponent />
            <ForwardRefComponentWithAnonymousFunction />
            <ForwardRefComponentWithCustomDisplayName />
            <LazyComponent />
          </Suspense>
        </StrictMode>
      </Fragment>
    </Profiler>
  );
}

Domain

Subdomains

Frequently Asked Questions

What does ElementTypes() do?
ElementTypes() is a function in the react codebase, defined in packages/react-devtools-shell/src/app/ElementTypes/index.js.
Where is ElementTypes() defined?
ElementTypes() is defined in packages/react-devtools-shell/src/app/ElementTypes/index.js at line 55.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free