A

Admin • 833.24K Points
Coach

Q. What is the key difference between props and state in React?

  • (A) Props are mutable, state is immutable
  • (B) Props are used for internal data, state for external
  • (C) Props are passed, state is managed internally
  • (D) No difference
  • Correct Answer - Option(C)
  • Views: 25
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

Props are passed from parent to child, state is managed within a component.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.