Home / Class/ Chrome Class — react Architecture

Chrome Class — react Architecture

Architecture documentation for the Chrome class in Chrome.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  8ec0492c_94fb_698e_bb73_4377ede788b3["Chrome"]
  5c033b86_56f7_5f1d_a1e8_ad727f4aca7d["Chrome.js"]
  8ec0492c_94fb_698e_bb73_4377ede788b3 -->|defined in| 5c033b86_56f7_5f1d_a1e8_ad727f4aca7d
  9aa57692_167f_5259_6ee4_c8a12d15cff9["render()"]
  8ec0492c_94fb_698e_bb73_4377ede788b3 -->|method| 9aa57692_167f_5259_6ee4_c8a12d15cff9

Relationship Graph

Source Code

fixtures/view-transition/src/components/Chrome.js lines 5–43

export default class Chrome extends Component {
  render() {
    const assets = this.props.assets;
    return (
      <html lang="en">
        <head>
          <meta charSet="utf-8" />
          <meta name="viewport" content="width=device-width, initial-scale=1" />
          <link rel="shortcut icon" href="favicon.ico" />
          <link rel="stylesheet" href={assets['main.css']} />
          <link rel="preconnect" href="https://fonts.googleapis.com" />
          <link
            rel="preconnect"
            href="https://fonts.gstatic.com"
            crossOrigin=""
          />
          <link
            href="https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap"
            rel="stylesheet"
          />
          <title>{this.props.title}</title>
        </head>
        <body>
          <noscript
            dangerouslySetInnerHTML={{
              __html: `<b>Enable JavaScript to run this app.</b>`,
            }}
          />
          {this.props.children}
          <script
            dangerouslySetInnerHTML={{
              __html: `assetManifest = ${JSON.stringify(assets)};`,
            }}
          />
        </body>
      </html>
    );
  }
}

Domain

Frequently Asked Questions

What is the Chrome class?
Chrome is a class in the react codebase, defined in fixtures/view-transition/src/components/Chrome.js.
Where is Chrome defined?
Chrome is defined in fixtures/view-transition/src/components/Chrome.js at line 5.

Analyze Your Own Codebase

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

Try Supermodel Free