-
Notifications
You must be signed in to change notification settings - Fork 15
/
index2.html
58 lines (50 loc) · 2.25 KB
/
index2.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<script src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://unpkg.com/@reduxjs/[email protected]/dist/redux-toolkit.umd.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<script src="https://unpkg.com/[email protected]" crossorigin></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-bootstrap/2.9.2/react-bootstrap.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div id="root"></div>
<script type="text/babel">
const { useState } = React;
const { configureStore, createSlice } = RTK;
console.log("useState", JSON.stringify(useState))
console.log("configureStore", JSON.stringify(configureStore))
</script>
<script src="./dist/umd/index.js"></script>
<style src="./dist/style.css"></style>
<style src="./src/App.css"></style>
<script>
console.log("hi")
console.log(Object.keys(Shared))
const { App, AppCanvas, LogButton } = Shared
console.log(Object.keys(Shared))
ReactDOM.createRoot(document.getElementById('root')).render(
React.createElement(App)
)
// ReactDOM.createRoot(document.getElementById('rootl')).render(
// React.createElement(AppCanvas, {}, "Here", React.createElement(LogButton))
// )
console.log("hi")
console.log(Object.keys(Shared))
console.log("process.env.NODE_ENV", process.env.NODE_ENV)
const { App: App2 } = Shared
console.log("Shared", JSON.stringify(Object.keys(Shared)))
console.log("Shared", JSON.stringify(Shared))
// console.log("App", JSON.stringify(App2))
// console.log(Object.keys(window))
console.log(Object.keys(window.Shared))
</script>
</body>
</html>