-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathHelloWorldRact.html
More file actions
28 lines (26 loc) · 850 Bytes
/
Copy pathHelloWorldRact.html
File metadata and controls
28 lines (26 loc) · 850 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Hello World on React</title>
</head>
<body>
<div id="root"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.21.1/babel.min.js"></script>
<script type="text/babel">
class HelloWorld extends React.Component {
render() {
return (<h1>Hello world</h1>);
}
}
ReactDOM.render(
<HelloWorld />,
document.getElementById('root')
);
</script>
</body>
</html>