Glossary: Real-Time Apps with WebSockets
Custom hook
Also written: custom hooks
A function whose name starts with `use` and that calls other React hooks. It lets you move socket code out of `App` into something like `useOrders()`.
Glossary: Real-Time Apps with WebSockets
Also written: custom hooks
A function whose name starts with `use` and that calls other React hooks. It lets you move socket code out of `App` into something like `useOrders()`.