MCPcopy Create free account
hub / github.com/Lobos/react-ui / constructor

Function constructor

src/Datepicker/Clock.js:9–18  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

7
8class Clock extends Component {
9 constructor (props) {
10 super(props);
11 this.state = {
12 current: props.current,
13 stage: props.stage || 'clock',
14 active: props.active,
15 am: props.current.getHours() < 12
16 };
17 this.close = this.close.bind(this);
18 }
19
20 componentWillReceiveProps (nextProps) {
21 if (nextProps.current !== this.props.current) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…