TypeScript — A JavaScript BodyGuard to your rescue!

BUGS! BUGS! BUGS! Every developer out there must have faced these words in their lives. Bugs are a part of a developer's life. Whatever amount of code we write everyday has probability to have some bugs. As the number of bugs goes on increasing, our overall code quality decreases and no-one wishes of having such … Continue reading TypeScript — A JavaScript BodyGuard to your rescue!

Understanding gotchas with un-mounting using useEffect hook— React

In2021, I can say many developers are loving the functional components implementation with the help of hooks. Recently in one of my projects, while implementing Unmount lifecycle method using useEffect, we faced issue like our unmount (return function inside useEffect) was getting executed whereas component was still in mounted phase. While solving it I got … Continue reading Understanding gotchas with un-mounting using useEffect hook— React

Native vs ImmutableJS vs Immer — Are libraries the way to go for immutability in React?

Maintaining immutability when dealing with objects and arrays is very important in React. It ensures that the DOM updates correctly and predictably. But when we have nested data structures, maintaining immutability in our data can get ugly, very fast. This article explores 3 approaches to immutability — doing it natively, using ImmutableJS (a library which … Continue reading Native vs ImmutableJS vs Immer — Are libraries the way to go for immutability in React?