Skip to content

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()`.

Where the book teaches it

Related terms

useEffectState (React)