Pass a Listener to a useCallback Hook

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

We need to be able to capture user input from React and use them as a broadcaster, so we'll lean on the useCallback hook and convert it into a broadcaster. We'll take what we've learned from using callbacks and closures to set up a pattern that can capture a setState then pass values to setState.