index.html — react Source File
Architecture documentation for index.html, a html file in the react codebase.
Entity Profile
Source Code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Component Stacks</title>
<style>
html, body {
margin: 20px;
}
pre {
background: #eee;
border: 1px solid #ccc;
padding: 2px;
}
</style>
</head>
<body>
<div id="container">
<p>
To install React, follow the instructions on
<a href="https://github.com/facebook/react/">GitHub</a>.
</p>
<p>
If you can see this, React is <strong>not</strong> working right.
If you checked out the source from GitHub make sure to run <code>npm run build</code>.
</p>
</div>
<script type="module">
import React from 'https://esm.sh/react@canary/?dev';
import ReactDOMClient from 'https://esm.sh/react-dom@canary/client?dev';
window.React = React;
window.ReactDOMClient = ReactDOMClient;
import("./Example.js").then(({ default: Example }) => {
console.log("Example", Example)
const container = document.getElementById("container");
const root = ReactDOMClient.createRoot(container);
root.render(React.createElement(Example));
});
</script>
<h3>The above stack should look something like this:</h3>
<pre>
at Lazy
at Component (/stacks/Component.js:7:1)
at div
at Suspense
at BabelClassWithFields (/stacks/BabelClasses-compiled.js:31:31)
at BabelClass (/stacks/BabelClass-compiled.js:13:29)
at FrozenClass (/stacks/Components.js:22:1)
at NativeClass (/stacks/Component.js:16:1)
at Custom Name (/stacks/Component.js:11:1)
at ErrorBoundary (/stacks/Example.js:5:1)
at Example (/stacks/Example.js:32:1)</pre>
</body>
</html>
Source
Frequently Asked Questions
What does index.html do?
index.html is a source file in the react codebase, written in html.
Where is index.html in the architecture?
index.html is located at fixtures/stacks/index.html (directory: fixtures/stacks).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free