summaryrefslogtreecommitdiff
path: root/src/clockView.js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-28 19:19:11 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-28 19:19:11 (GMT)
commit8ca2b1d7e9c6f142c2d89f33b41a164a0eadf702 (patch)
tree364966388c6f746cb09eea1dcf470771ec1fba71 /src/clockView.js
parentc5b8ca5aebd6ebe9230a764b239b7bdaea8aaef7 (diff)
moved clock controller back to js dir
Diffstat (limited to 'src/clockView.js')
-rw-r--r--src/clockView.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/clockView.js b/src/clockView.js
new file mode 100644
index 0000000..61a13f4
--- /dev/null
+++ b/src/clockView.js
@@ -0,0 +1,14 @@
+var ClockView = React.createClass({
+ render: function() {
+ return (
+ <p>
+ Hello, <input type="text" placeholder="Your name here" />!
+ It is {this.props.date.toTimeString()}
+ </p>
+ );
+ }
+});
+
+setInterval(function() {
+ ReactDOM.render(<ClockView date={new Date()} />, document.getElementById('clock'));
+}, 500);