Handling an Enter Keypress with useListener and React

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

You often want to ignore values until the user performs a certain action. This lesson walks through setting up an allowWhen broadcaster that will only pass the latest value through when another broadcaster fires. The scenario is using an Enter keypress to allow the latest value of the input text to be passed through.