Home / Function/ Html() — react Function Reference

Html() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a5f23473_e557_d840_ae34_ae83f12fdf40["Html()"]
  285ea620_a7e6_bda4_2f19_f17fa971360d["Html.js"]
  a5f23473_e557_d840_ae34_ae83f12fdf40 -->|defined in| 285ea620_a7e6_bda4_2f19_f17fa971360d
  style a5f23473_e557_d840_ae34_ae83f12fdf40 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fixtures/fizz/src/Html.js lines 9–34

export default function Html({assets, children, title}) {
  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']} />
        <title>{title}</title>
      </head>
      <body>
        <noscript
          dangerouslySetInnerHTML={{
            __html: `<b>Enable JavaScript to run this app.</b>`,
          }}
        />
        {children}
        <script
          dangerouslySetInnerHTML={{
            __html: `assetManifest = ${JSON.stringify(assets)};`,
          }}
        />
      </body>
    </html>
  );
}

Domain

Subdomains

Frequently Asked Questions

What does Html() do?
Html() is a function in the react codebase, defined in fixtures/fizz/src/Html.js.
Where is Html() defined?
Html() is defined in fixtures/fizz/src/Html.js at line 9.

Analyze Your Own Codebase

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

Try Supermodel Free