A react hook to an event listener to the document object
Arguments | Type | Description | Default value |
---|---|---|---|
eventName | string | The event to track | undefind |
callback | function | The callback to be called on event | undefined |
conditions | object | The options to be passed to the event listener | |
isLayoutEffect | boolean | Should it use layout effect. Defaults to false | false |
No return value.
Join our discord server! You can click the floating discord icon at the bottom right of the screen and chat with us!