Combing the useState and useEffect hooks allows use to manage asynchronous state. This lesson walks through using a broadcaster inside of useEffect then using setState as the listener.
useState
useEffect
setState