-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (29 loc) · 1.01 KB
/
index.html
File metadata and controls
36 lines (29 loc) · 1.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible"content="ie=edge">
<!-- REACT LIBRARY -->
<script src="https://unpkg.com/react@15.5.4/dist/react.js"></script>
<!-- REACT DOM LIBRARY -->
<script src="https://unpkg.com/react-dom@15.5.4/dist/react-dom.js"></script>
<!-- BABEL LIBRARY -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.25.0/babel.min.js"></script>
<title>React Practice</title>
</head>
<body>
<!-- Location to insert Reat content -->
<div id="app">React has not rendered yet.</div>
<!-- Javascript...put this in own file for separation of concerns-->
<script type="text/babel">
//RENDER REACT TO THE DOM...ACCEPTS TWO ARGUMENTS (REACT WHAT, REACT WHERE)
ReactDOM.render(
// REACT WHAT - JSX
<h1>Hello World!</h1>,
//REACT WHERE - DIV WITH ID OF "APP"
document.getElementById("app")
);
</script>
</body>
</html>