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()Posted July 6, 2021javascriptpromiseasyncStart 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 ➞
Don't Stop Me Now: How to Use React useTransition() hookPosted June 23, 2021reactusetransitionhookStart discussionHow to speed up UI updates by prioritizing updates using React useTranstion() hook. Continue reading ➞
A Simple Explanation of JavaScript Variables: const, let, varPosted June 16, 2021javascriptvariableconstletvarStart discussionHow to declare, initialize, assign and read JavaScript variables using const, let and var statements. Continue reading ➞
How to Dynamically Import ECMAScript ModulesUpdated October 3, 2021javascriptmoduleStart discussionHow to use import(pathToModule) to dynamically import ECMAScript modules in JavaScript. Continue reading ➞
How to Memoize with React.useMemo()Updated February 12, 2023reactusememohookStart discussionHow and when to use React.useMemo() hook to improve the performance of React components. Continue reading ➞
How to Cleanup Async Effects in ReactPosted May 25, 2021reactasyncStart discussionHow to correctly cleanup async side-effects in React when the component unmounts or updates. Continue reading ➞
Why Math.max() Without Arguments Returns -InfinityPosted May 18, 2021javascriptnumberStart discussionWhat is the reason that Math.max() utility function when being called without arguments returns -Infinity. Continue reading ➞