Q. What is a pure component?

  • (A) A component that uses only functional logic
  • (B) A component that does not re-render unnecessarily
  • (C) A component without any state
  • (D) A component with only props
πŸ’¬ Discuss
βœ… Correct Answer: (B) A component that does not re-render unnecessarily
Explanation: Pure components implement shouldComponentUpdate with shallow prop and state comparison.
Explanation by: Mr. Dubey
Pure components implement shouldComponentUpdate with shallow prop and state comparison.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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