A

Admin • 828.03K Points
Coach

Q. What is a pure component in React?

  • (A) A component with no JSX
  • (B) A component that never updates
  • (C) A component that renders the same output for the same props
  • (D) A component with only CSS
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
Pure components prevent unnecessary re-renders by doing a shallow comparison of props and state.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.