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

Immutability with Immer in React

In React applications the most important part is the application state. We can maintain local state within the component or global state across the application using Redux. Managing the state becomes crucial as we may have inconsistent app behavior or have bugs if the state is not managed properly. So while dealing with the state … Continue reading Immutability with Immer in React

Optimization Techniques for better Performance: React

We all know that React is one of the famous javascript frameworks used for web development. Web apps developed using React are known for their speed and efficient performance. Though React provides better speed and efficiency than other frameworks available we can add some more efficiency to our app by following some simple optimization techniques. The speed and performance of a web app can be improved … Continue reading Optimization Techniques for better Performance: React