-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (40 loc) · 1.23 KB
/
index.html
File metadata and controls
41 lines (40 loc) · 1.23 KB
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
39
40
41
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Buildless React 19 app</title>
<link rel="stylesheet" href="https://esm.sh/*simpledotcss@2.3.7" />
<script type="importmap">
{
"imports": {
"react": "https://esm.sh/*react@19.2.4?dev",
"react/": "https://esm.sh/*react@19.2.4&dev/",
"react-dom": "https://esm.sh/*react-dom@19.2.4?dev",
"react-dom/": "https://esm.sh/*react-dom@19.2.4&dev/",
"scheduler": "https://esm.sh/*scheduler@^0.27.0?dev"
}
}
</script>
<script type="module">
import {
availablePresets,
registerPlugin,
registerPreset,
} from "https://esm.sh/@babel/standalone@7.28.1";
import react from "https://esm.sh/babel-plugin-react-compiler@1.0.0";
registerPreset("jsx", {
presets: [[availablePresets["react"], { runtime: "automatic" }]],
});
registerPlugin("react", react);
</script>
<script
type="text/babel"
data-presets="jsx,typescript"
data-plugins="react"
data-type="module"
src="./main.tsx"
></script>
</head>
<body></body>
</html>