blob: fb877f428062e5a62d8b111edb7ad7b47d5f7717 (
plain)
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
|
/*
* rhrdweb
*
* Copyright (C) 2016 Christian Pointner <equinox@helsinki.at>
*
* This file is part of rhrdweb.
*
* rhrdweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* rhrdweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with rhrdweb. If not, see <http://www.gnu.org/licenses/>.
*/
var ClockView = React.createClass({
render: function() {
return (
<p>
Hello, <input type="text" placeholder="Your name here" />!
It is {this.props.date.toTimeString()}
</p>
);
}
});
// ReactDOM.render(<ClockView date={new Date()} />, document.getElementById('clock'));
|