Hello. Can such a small question. here is the method. Here comes promiss
onClick = () => getLogin({ permissions: 'premissions' }) .then(this.handleSuccess) .catch(this.handleError); but I need to call another method in this method and still return the promise. that is, I add an explicit return
onClick = () => { this.handleClick('vk'); return getLogin({ permissions: 'premissions' }) .then(this.handleSuccess) .catch(this.handleError); }; How to replace?