What is a custom hook?
0:11
A custom hook is a JavaScript function whose name starts with use and that can call other hooks. It lets you extract and reuse stateful logic between components without changing their structure or introducing wrapper components.