Although self-learning is great, it does come with its pitfalls. Going through the posts of budding developers, it soon becomes apparent that two issues are becoming increasingly common: being stuck in tutorial hell and impostor syndrome. Being a tea...
When writing code, it is always better to be as explicit as possible instead of going for tricks. This concept is best explained by examples so let's get right into it. The double bang !! (logical NOT) This one is by far the most common "trick" in th...
React.memo() is one of those things that should be a part of every React developer's arsenal. It gives us the ability to memoize a React component. As with any tool, before we delve into how to use React.memo(), let's understand the problem first. Wh...
Ever since their inclusion in JavaScript, arrow functions' usage has increased at a very rapid rate by JavaScript developers. Everyone seems to like arrow functions; perhaps more than they really should. Firstly, there are situations where one absolu...
Arrow functions, or arrow function expressions, are another way of declaring functions in JavaScript. But, please note right from the outset, that the differences between regular functions and arrow functions don't end with just the syntax. In other ...
Destructuring, also called destructuring assignment, is when individual elements of an iterable are extracted and assigned to variables. By far the most common use cases for it are with Arrays and Objects. Array Destructuring Let's say we have an ar...