-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (44 loc) · 1.41 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
39
40
41
42
43
44
45
46
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Hello World!</title>
</head>
<body>
<section class="section">
<div class="container">
<h1 class="title">Hello World</h1>
<p class="subtitle">My first website with <strong>Bulma</strong>!</p>
<p>
We are using Node.js <span id="node-version"></span>, Chromium
<span id="chrome-version"></span>, and Electron
<span id="electron-version"></span>.
</p>
<div id="react-root"></div>
</div>
</section>
<!-- You can also require other files to run in this process -->
<script
crossorigin
src="https://unpkg.com/react@16/umd/react.development.js"
></script>
<script
crossorigin
src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"
></script>
<script>
// set the bundle path based on how we are running
var bundlePath = "./build/bundle.js";
if (typeof process !== "undefined" && process.env.ENVIRONMENT === "dev") {
bundlePath = "http://localhost:8080/build/bundle.js";
}
var bundleScriptEl = document.createElement("script");
bundleScriptEl.src = bundlePath;
document.currentScript.parentNode.insertBefore(
bundleScriptEl,
document.currentScript,
);
</script>
</body>
</html>