Duration
1 min
Access
Free
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.