-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathexercise3-counter.html
More file actions
35 lines (30 loc) · 903 Bytes
/
exercise3-counter.html
File metadata and controls
35 lines (30 loc) · 903 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
33
34
<!DOCTYPE html>
<html>
<head>
<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">
/**
* EXERCISE
*
* Counter
* ------------------------
* Requirements:
* - The counter should start displaying 0
* - There should be a minus button that decrements the counter by one
* - There should be a plus button that increments the counter by one
*
*/
var Counter= React.createClass({
});
ReactDOM.render(
<Counter />,
document.getElementById('root')
);
</script>
</body>
</html>