Popular posts

JavaScript
React
Post image

A Guide to React Context and useContext() Hook

Updated February 2, 2023
The React context provides data to components no matter how deep they are in the components hierarchy.
Continue reading ➞
Post image

How to Use Promise.any()

How to use the Promise.any() to get the first fulfilled promise from an array of promises.
Continue reading ➞
Post image

2 Ways to Remove a Property from an Object in JavaScript

How to remove properties from an object in JavaScript using the delete operator or object destructuring with rest syntax.
Continue reading ➞
Post image

'return await promise' vs 'return promise' in JavaScript

Is there any difference between using 'return await promise' and 'return promise' in asynchronous JavaScript functions?
Continue reading ➞
Post image

How to Use Promise.allSettled()

How to use Promise.allSettled() to perform parallel async operations and collect the promises statuses into an array.
Continue reading ➞
Post image

How to Use fetch() with JSON

Updated January 23, 2023
How to use fetch() API to load and post JSON data.
Continue reading ➞
Post image

JavaScript Promises: then(f,f) vs then(f).catch(f)

What's the difference between promise.then(fn, fn) and promise.then(fn).catch(fn) when using JavaScript promises?
Continue reading ➞
Post image

What is a Promise in JavaScript?

The post that I had wanted to read myself to understand promises.
Continue reading ➞
Post image

How to Use Promise.all()

How to use Promise.all() to perform parallel async operations in a fail-fast manner.
Continue reading ➞
Post image

A Simple Guide to Component Props in React

Posted July 2, 2021
In this guide you'll find what are component props in React and how to use them.
Continue reading ➞
prev1
[...]
345
[...]
18next