Home / Function/ TopLevelWrapperForDevTools() — react Function Reference

TopLevelWrapperForDevTools() — react Function Reference

Architecture documentation for the TopLevelWrapperForDevTools() function in shared.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  e03fc480_78aa_40a7_ab5e_ebc53e85afda["TopLevelWrapperForDevTools()"]
  5307ca48_73ed_9094_d124_b0724b52c950["shared.js"]
  e03fc480_78aa_40a7_ab5e_ebc53e85afda -->|defined in| 5307ca48_73ed_9094_d124_b0724b52c950
  style e03fc480_78aa_40a7_ab5e_ebc53e85afda fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fixtures/devtools/regression/shared.js lines 300–322

function TopLevelWrapperForDevTools({version}) {
  let header = <h1>React {version}</h1>;
  if (version.includes('canary')) {
    const commitSha = version.match(/.+canary-(.+)/)[1];
    header = (
      <h1>
        React canary{' '}
        <a href={`https://github.com/facebook/react/commit/${commitSha}`}>
          {commitSha}
        </a>
      </h1>
    );
  } else if (version.includes('alpha')) {
    header = <h1>React next</h1>;
  }

  return (
    <div>
      {header}
      {apps}
    </div>
  );
}

Domain

Subdomains

Frequently Asked Questions

What does TopLevelWrapperForDevTools() do?
TopLevelWrapperForDevTools() is a function in the react codebase, defined in fixtures/devtools/regression/shared.js.
Where is TopLevelWrapperForDevTools() defined?
TopLevelWrapperForDevTools() is defined in fixtures/devtools/regression/shared.js at line 300.

Analyze Your Own Codebase

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

Try Supermodel Free