forked from Montana-Code-School/react-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexercise1-hello.html
More file actions
32 lines (29 loc) · 875 Bytes
/
exercise1-hello.html
File metadata and controls
32 lines (29 loc) · 875 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>
<title>Hello React</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.7/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.7/react-dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/JSXTransformer.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/jsx" src="app.js">
<!-- /**
* EXERCISE
*
* Hello World
* ------------------------
* Requirements:
* - Create a React class that renders a h1 tag that contains the words 'hello world'
*/ -->
<!-- var HelloWorld = React.createClass({
// YOUR CODE HERE
});
ReactDOM.render(
<HelloWorld />,
document.getElementById('root')
); -->
</script>
</body>
</html>