-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (46 loc) · 1.37 KB
/
index.html
File metadata and controls
54 lines (46 loc) · 1.37 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
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="App.css" />
<title>React App</title>
</head>
<!-- * Ep: 1 — Inception
In this episode, I learned how React and ReactDOM work under the hood.
-->
<body>
<!-- * Root Div controlled by React -->
<div id="root">
<h1>Not Rendered</h1> <!-- React will replace this -->
</div>
<!-- ! Outside React Control -->
<!--
<div>
<h1>React has not controlled this</h1>
</div>
-->
</body>
<!-- * Vanilla JS DOM Manipulation Example -->
<!--
<script>
const root = document.getElementById('root');
const heading = document.createElement("h1");
heading.innerHTML = "Hello jii";
root.appendChild(heading);
</script>
-->
<!-- * React CDN Scripts -->
<!-- ! Development Mode -->
<!--
<script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
-->
<!-- ! Production Mode -->
<!--
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
-->
<!-- * React App Entry Point (Module-based) -->
<script type="module" src="App.js"></script>
</html>