Open MaddyMastering opened 8 years ago
when i try let time = hour+":"+minute; this.setState({time: time});
i get undefined is not a function(evaluating 'this.setState({time:time})')
but if i alert that time i can see correct time. same problem for date.
plz help how to do this.
when i try let time = hour+":"+minute; this.setState({time: time});
i get undefined is not a function(evaluating 'this.setState({time:time})')
but if i alert that time i can see correct time. same problem for date.
plz help how to do this.