Monthly Archives: January, 2022
JavaScript
Printing JavaScript stack traces using console.trace
The console object in JavaScript has a lot more useful functions than the most frequently used console.log method. Debugging errors and finding...
JavaScript
Overriding nested dependencies in NPM
Whenever we install a particular package, it is common to come across a problem with a dependency's dependency. With the release of...
React
Automatic batching in React 18 helps avoid re-rendering
Remember the earlier versions of React that used to batch multiple state updates inside event handlers such as click or change to...
JavaScript
Flatten Arrays in Vanilla JavaScript with flat() and flatMap()
ES2019 introduced two methods on the array prototype that would make life so much simpler for developers. These are flat() and flatmap()...