componentDidMount(){
setTimeout(() => this.setState({text:true}),2000);
}
componentDidMount(){
setTimeout(function(){return( this.setState({text:true}))}, 2000);
}
TypeError: this.setState is not a function
componentDidMount(){
setTimeout((function(){return( this.setState({text:true}))}).bind(this), 2000);
}