A Admin • 833K Points Coach Q. How do you pass data from a child component to a parent component in React? (A) By passing a callback function from the parent to the child and invoking it with data (B) By using props directly from the child (C) By using the Context API only (D) By modifying the parent's state directly Correct Answer - Option(A) Views: 27 Filed under category React JS Hashtags: Share Manage Tags
Discusssion
Login to discuss.