setTimeout(() => { this.yourFunction(); }, 3000);
setTimeout(() => {this.setState({timePassed: true})}, 1000)