Full Stack Developer | Freelancer | JavaScript | React | Nodejs. https://yogeshchavan.dev/. Book 1:1 @ hiretheauthor.com/myogeshchavan97
Full Stack Developer | Freelancer | JavaScript | React | Nodejs. Loves sharing knowledge through technical articles. Dev.to: https://dev.to/myogeshchavan97 https://linktr.ee/myogeshchavan97
Markdown supported · ⌘↵ to post
Awesome content. Thanks Yogesh! I was wondering as for API call we mostly use axios which also returns a Promise by default, we will not have to explicitly return a promise from inside a then block. Obviously for other use cases where things don't return promise we have to do the one you did. Please correct me if I am wrong.
Wow-some article as usual Yogesh Chavan, this is a refreshment for me 🤗, thanks a lot for sharing 😊
Yogesh Chavan
Himanshu Kumar
Great article. I have stuck in this problem before. I wonder if there's a way to solve this by using async-await instead of promises.