Instruction: Describe what custom hooks are, their benefits, and provide an example of a custom hook.
Context: This question tests the candidate's capability to extend React's functionality with custom hooks, promoting code reusability and abstraction.