How to prevent loading react UseEffect twice?

If you are facing an issue of loading react UseEffect twice, then go to your application “src>>index.js” file. You will get the code like the following snippets.

Old React Code

Remove that old react code by the following snippets.

New Code

It will solve the issue. Happy coding!

Total 0 Votes
0

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

Leave a Comment

Back To Top