πŸ“Š React Js
Q. What is the benefit of using `React.Fragment`?
  • (A) It allows multiple return values from a function
  • (B) It reduces the size of the DOM by not adding extra nodes
  • (C) It is used for styling
  • (D) It provides lifecycle methods
πŸ’¬ Discuss
βœ… Correct Answer: (B) It reduces the size of the DOM by not adding extra nodes

Explanation: React.Fragment lets you group children without adding extra DOM nodes.

Explanation by: Mr. Dubey
React.Fragment lets you group children without adding extra DOM nodes.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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