-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-example.html
32 lines (30 loc) · 976 Bytes
/
react-example.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
<script type="module" src="./elements/SiteShellElement.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
</head>
<body>
<site-shell active="react-example.html">
<main slot="main">
This is the main
<div id="react-container"></div>
<script type="text/jsx">
function MyReactApp() {
return (
<div>
<h1>Hello React World</h1>
</div>
);
}
ReactDOM.render(<MyReactApp />, document.getElementById('react-container'));
</script>
</main>
</site-shell>
</body>
</html>