Q. Which hook allows sharing logic between components in React?
β
Correct Answer: (C)
Custom hooks
Explanation: Custom hooks allow you to extract and reuse logic between components.