score:2

setTimeout(() => this.props.getData(), 3000);

score:3

setTimeout(() => {
    // do something else
    this.props.getData();
}, 3000);

Related Query

More Query from same tag