πŸ“Š React Js
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

πŸ‘οΈ
53
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate