Hey brother you are noob, you don't know this small thing and you are doing graduation with bachelor of computer application
asked 6 hours ago
1 Answers
4 Views
I am building a React application and my page keeps re-rendering continuously after I added useEffect. Whenever the component loads, it repeatedly refreshes and the browser becomes slow. I think it may be related to state updates inside useEffect, but I am not sure how to fix it properly. I want to understand why this infinite rendering happens and what is the best solution to prevent unnecessary re-renders in React applications.