useKeyUp

Tags:

A React Hook that helps to handle keyup event.

Demo

Try to press Enter to increase the counter.

Source
Key up times:
0
Enter

Usage

See API for more details.

Source

Click links below to view source on GitHub.

API

It's derivated from useKeyStroke, see useKeyStroke for more details.

// same as `useKeyStroke(keyFilter, handler, {...options, eventName: 'keyup'})` const stop = useKeyUp(keyFilter, handler, options)
ON THIS PAGE