Can Recoil replace Redux ? State management in React.

Before we walk down to theory, We have Repo out with a demo to show the difference between Recoil & Redux. Also, try running the application to see how new features from Recoil makes a difference. PerformanceRecoil subscriptions are on atom/selector updaters, while Redux is on all actions. So if you have N connected component and dispatch … Continue reading Can Recoil replace Redux ? State management in React.

Recoil — is this the new ‘Redux’ for React?

Recoil is a new state management library for React that lets you manage global/sharable state in a Reactish way. What's great is that Recoil is being developed by the Facebook team. In this blog we'll take a look at the useRecoilState hook and how they have made it is so 'React'-ish? Let’s take a very simple … Continue reading Recoil — is this the new ‘Redux’ for React?

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