A Guide to React Context and useContext() HookUpdated February 2, 2023reactcontexthookStart discussionThe React context provides data to components no matter how deep they are in the components hierarchy. Continue reading ➞
How to Use Promise.any()Posted August 26, 2021javascriptpromiseasyncStart discussionHow to use the Promise.any() to get the first fulfilled promise from an array of promises. Continue reading ➞
2 Ways to Remove a Property from an Object in JavaScriptPosted August 17, 2021javascriptobjectpropertyStart discussionHow to remove properties from an object in JavaScript using the delete operator or object destructuring with rest syntax. Continue reading ➞
'return await promise' vs 'return promise' in JavaScriptPosted August 10, 2021javascriptpromiseasyncStart discussionIs there any difference between using 'return await promise' and 'return promise' in asynchronous JavaScript functions? Continue reading ➞
How to Use Promise.allSettled()Posted August 3, 2021javascriptpromiseasyncStart discussionHow to use Promise.allSettled() to perform parallel async operations and collect the promises statuses into an array. Continue reading ➞
How to Use fetch() with JSONUpdated January 23, 2023fetchjsonjavascriptStart discussionHow to use fetch() API to load and post JSON data. Continue reading ➞
JavaScript Promises: then(f,f) vs then(f).catch(f)Posted July 21, 2021javascriptpromiseStart discussionWhat's the difference between promise.then(fn, fn) and promise.then(fn).catch(fn) when using JavaScript promises? Continue reading ➞
What is a Promise in JavaScript?Posted July 15, 2021javascriptpromiseStart discussionThe post that I had wanted to read myself to understand promises. Continue reading ➞
How to Use Promise.all()Updated March 22, 2023javascriptpromiseasyncStart discussionHow to use Promise.all() to perform parallel async operations in a fail-fast manner. Continue reading ➞
A Simple Guide to Component Props in ReactPosted July 2, 2021reactStart discussionIn this guide you'll find what are component props in React and how to use them. Continue reading ➞