Q. What is the correct syntax to pass a function as a prop?
β
Correct Answer: (B)
<MyComp func={doSomething} />
Explanation: Functions are passed as props using curly braces without invoking them.