⚡️ Tryprepforge
Backend Engineering, Frontend Engineering Senior programming

When would you use the second argument in useEffect?\n\nA) To specify dependencies that will trigger the effect on change.\nB) To run the effect only once on mount.\nC) To prevent infinite loops.\nD) All of the above.

Suggested Answer

Practice More Questions Like This

Generate unlimited interview questions with structured answers, code formatting, and immersive audio explanations.

No credit card required

More Backend Engineering, Frontend Engineering Interview Prep

Link copied to clipboard