Q. How do you pass data from a child component to a parent component in React?
β
Correct Answer: (A)
By passing a callback function from the parent to the child and invoking it with data
Explanation: Data flows down via props; child can send data up via callbacks.