Definir atraso reagir nativo
setTimeout(() => {
this.yourFunction();
}, 3000);
Upset Unicorn
setTimeout(() => {
this.yourFunction();
}, 3000);
setTimeout(() => {this.setState({timePassed: true})}, 1000)