When should we use a custom hook? | Custom Hooks | react Interview Questions | NextRound.in