-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirstFile (using render).html
More file actions
44 lines (38 loc) · 1.35 KB
/
Copy pathfirstFile (using render).html
File metadata and controls
44 lines (38 loc) · 1.35 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
<!DOCTYPE html>
<html>
<head>
<style>
#container {
padding: 50px;
background-color: #EEE;
}
#container h1 {
font-size: 144px;
font-family: sans-serif;
color: #0080A8;
}
</style>
<!--React and JQuery are cosidered Javascript frameworks-->
<meta charset="utf-8">
<title>React! React! React!</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script> <!-- content delivery networks cdn -->
<!--the CDNs are used in the same way import bring labraries into java files-->
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> <!--the script tag lets my start coding in javascript, it's literally changing the langauge within the file-->
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
<body>
<div id="container"></div>
<script type="text/babel">
var destination = document.querySelector("#container");
ReactDOM.render( //this is a method
<div>
<h1>Erick Duarte</h1>
<h1><i>Alexandra Messersmith</i></h1>
<h1>Pavlov</h1>
<h1>Kingsley</h1>
</div>, //argument 1 (what you want to output)
destination //argument 2 (location in the DOM to render)
);
</script>
</body>
</html>