M Mr. Dubey • 100.28K Points Coach Bookmark Embed Report View In MB-Short Q. How do you ensure a component only mounts once with a side-effect? (A) Use useEffect without dependencies (B) Use useEffect with an empty array (C) Use componentDidUpdate (D) Use useState Correct Answer - Option(B) Views: 21 Filed under category React Js Share
Discusssion
Login to discuss.