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

Method constructor

src/Datepicker/TimeSet.js:6–15  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

4
5class TimeSet extends Component {
6 constructor (props) {
7 super(props);
8 this.state = {
9 value: props.value || 0,
10 type: props.type
11 };
12 this.changeStage = this.changeStage.bind(this);
13 this.add = this.add.bind(this);
14 this.sub = this.sub.bind(this);
15 }
16
17 componentWillReceiveProps (nextProps) {
18 if (nextProps.value !== this.props.value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected