A

Admin • 802.91K Points
Coach

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

  • (A) Using props
  • (B) Using callback functions passed as props
  • (C) Using useState hook in child
  • (D) Using componentDidMount
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
Parents pass callbacks as props for children to communicate back.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.