/
index.html
38 lines (37 loc) · 1.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="native esm react example" />
<title>My App</title>
<style>
body {
color: white;
background-color: rgb(37, 37, 38);
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
#SITE_MAIN {
width: 50vw;
margin: 0 auto;
text-align: center;
}
</style>
<script type="importmap">
{
"imports": {
"react": "./static/esm-bridge/react.js",
"react-dom": "./static/esm-bridge/react-dom.js",
"react-dom/client": "./static/esm-bridge/react-dom.js"
}
}
</script>
</head>
<body>
<div id="SITE_MAIN"></div>
<script src="node_modules/react/umd/react.development.js"></script>
<script src="node_modules/react-dom/umd/react-dom.development.js"></script>
<script type="module" src="dist/client/main.js"></script>
</body>
</html>