forked from krambertech/react-essential-course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
28 lines (26 loc) · 787 Bytes
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.0/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.0/react-dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser.js"></script>
</head>
<body>
<div id='content'></div>
<script type="text/babel">
var HelloWorld = React.createClass({
render: function() {
return (
<h1> Hello world! </h1>
);
}
});
ReactDOM.render(
<HelloWorld />,
document.getElementById('content')
);
</script>
</body>
</html>