Q. How can you pass a function as a prop in React?
β
Correct Answer: (A)
Just pass the function reference in the props object
Explanation: Functions can be passed as props to allow child components to call them.