Build a Live Search Box with useBroadcaster and useListener in React

Share this video with your friends

Send Tweet

We're currently using mapBroadcaster to map the text of the input to a message sequence, but we can replace our message sequence with any other broadcaster we'd like. Let's try mapping to our getUrl broadcaster to create a "live search" functionality where we keep our debounced text input and map it to the fetch request