-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path03_component.html
More file actions
59 lines (43 loc) · 1.25 KB
/
03_component.html
File metadata and controls
59 lines (43 loc) · 1.25 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
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>React JS Compoenetn | Linkedin Learning</title>
<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>
<script crossorigin src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
function Header() {
return (
<header>
<h1>Eve's Kitchen</h1>
</header>
);
}
function Main() {
return (
<section>
<p>We serve good food</p>
</section>
);
}
function App() {
return (
<div>
<Header />
<Main />
</div>
);
}
ReactDOM.render(
<App />,
document.getElementById("root")
);
</script>
</body>
</html>