-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-2.html
More file actions
32 lines (31 loc) · 929 Bytes
/
example-2.html
File metadata and controls
32 lines (31 loc) · 929 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Hello World</title>
<script src="https://unpkg.com/react@latest/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@latest/dist/react-dom.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
const Hello = (props) => {
return (
<div>
<h1>Hello, {props.name}!</h1>
</div>
);
};
ReactDOM.render(
<div>
<Hello name="Madeira Tech Meetup"/>
<Hello name="ladies"/>
<Hello name="gentlemen"/>
<div>With JSX ;-)</div>
</div>,
document.getElementById('root')
);
</script>
</body>
</html>