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()Posted June 4, 2021reactusememohookStart 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 ➞
How to Correctly Debounce and Throttle Callbacks in ReactPosted May 11, 2021reactcallbackStart discussionHow to correctly debounce and throttle callbacks in React using useCallback() and useMemo() hooks. Continue reading ➞
Don't Confuse Function Expressions and Function Declarations in JavaScriptPosted May 4, 2021javascriptfunctionStart discussionWhat are the differences between function declarations and function expressions in JavaScript. Continue reading ➞
How to Use ECMAScript Modules in Node.jsPosted April 27, 2021javascriptmodulenodejsStart discussionHow to enable and use ECMAScript 2015 modules in Node.js. Continue reading ➞
Solving a Mystery Behavior of parseInt() in JavaScriptPosted April 20, 2021javascriptnumberStart discussionSolving a mystery of how parseInt() parses small float numbers in JavaScript. Continue reading ➞
How to Use Array Reduce Method in JavaScriptPosted April 13, 2021javascriptarrayreduceStart discussionWhat is a reduce operation and how to use array.reduce() method to perform the reduce operation on arrays. Continue reading ➞
3 Ways to Merge Arrays in JavaScriptPosted April 6, 2021javascriptarrayStart discussionHow to merge arrays in JavaScript using spread operator, array.concat() and array.push(). Continue reading ➞