Q. What is a pure component in React?
β
Correct Answer: (C)
A component that renders the same output for the same props
Explanation: Pure components prevent unnecessary re-renders by doing a shallow comparison of props and state.