Create a Custom useBroadcaster Hook

John Lindquist
InstructorJohn Lindquist

Share this video with your friends

Send Tweet

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.