How do hooks work, and why would you want to encapsulate business logic in a custom hook?

TechnicalSenior UI EngineerSenior Frontend DeveloperFrontend Developer