πŸ“Š React Js
Q. What happens if a component returns null?
  • (A) Nothing is rendered
  • (B) An error occurs
  • (C) An empty div is rendered
  • (D) The component re-renders infinitely
πŸ’¬ Discuss
βœ… Correct Answer: (A) Nothing is rendered

Explanation: Returning null from render means nothing is output to the DOM.

Explanation by: Mr. Dubey
Returning null from render means nothing is output to the DOM.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
69
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate