use-event-listener
Subscribe to events with a ref
Import
Source
Docs
Package
Usage
use-event-listener adds given event listener to an element to which ref is assigned.
Hook supports the same options as addEventListener
method.
After component is unmounted event listener is removed.
Definition
Feedback
Your feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done good
Leave feedback