Open gHashTag opened 8 years ago
hey @gHashTag, i think the problem is with
getInitialState() {
return {
timeElapsed: null
}
}
getInitialState
isn't valid as you use es6 class, instead of you should define initial state in the constructor like
class stopwatch extends Component {
constructor(props) {
super(props);
this.state = {
timeElapsed: null
};
}
...
}
Why?