mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-22 12:11:53 +02:00
2 lines
271 B
JavaScript
2 lines
271 B
JavaScript
|
import{useEffect as m}from"react";import{useLatestValue as c}from'./use-latest-value.js';function d(e,r,n){let o=c(r);m(()=>{function t(u){o.current(u)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}export{d as useDocumentEvent};
|