A

Admin • 833.24K Points
Coach

Q. How do you pass data from parent to child component in React?

  • (A) Using setState
  • (B) Using props
  • (C) Using refs
  • (D) Using context
  • Correct Answer - Option(B)
  • Views: 30
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

Props are used to pass data from parent to child components.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.