Open

Why does my useEffect run twice?

PikachuPRO๐ŸŒฑ Learnerasked #react#hooks

Hi, when i reload the web browser, and add console log inside of useEffect hook.
Then in the browser console, i could see it was printed twice.

How can i make sure to run only one time?

0 answers

No answers yet.

Your answer

Sign in to answer, and earn points and reputation for helping.