Course lesson
Create a Custom useBroadcaster Hook
Instead of always combining useState and useEffect, when can create a utility useBroadcaster hook which allows us to pass in a broadcaster. This lesson walks through setting up a custom hook to make our code more reusable.
- Duration
- 1 min
- Access
- Pro
- Transcript
- Available
Instead of always combining useState and useEffect, when can create a utility useBroadcaster hook which allows us to pass in a broadcaster. This lesson walks through setting up a custom hook to make our code more reusable.