Embrace the "effects" running twice in ReactJS
As per the React documentation, whenever a component mounts for the first time, React will unmount and mount it again. In the beginning, it may seem like an odd behavior from React, but in the post we will explore why we should embrace it rather than consider it a bug.
May 29, 2022
3 minutes read