Fixing Continuous Re-Renders in React: Understanding Passing by Reference vs. Passing by Value and application of spreed operator
Introduction
Recently, while working on a React project, I encountered an issue where my component was re-rendering continuously despite implementing a debounce hook(It is just a fancy useEffect hook wraped with some additional logic). This led to un...