-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-1.html
More file actions
26 lines (25 loc) · 807 Bytes
/
Copy pathexample-1.html
File metadata and controls
26 lines (25 loc) · 807 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
<!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>
</head>
<body>
<div id="root"></div>
<script type="text/javascript">
var Hello = function (props) {
return React.createElement('h1', {className: 'greeting'}, 'Hello, ' + props.name + '!');
};
ReactDOM.render(
React.createElement('div', {}, [
Hello({name: 'Madeira Tech Meetup'}),
Hello({name: 'ladies'}),
Hello({name: 'gentlemen'})
]),
document.getElementById('root')
);
</script>
</body>
</html>