UNPKG

node-karin

Version:

Lightweight, efficient, concise, and stable robot framework.

2 lines (1 loc) 314 B
import{r as d,bR as l}from"./index-CrmOvtfz.js";function v(r,n,a){let i=d.useRef(n),t=l(()=>{a&&a(i.current)});d.useEffect(()=>{var o;let e=r==null||(o=r.current)===null||o===void 0?void 0:o.form;return e==null||e.addEventListener("reset",t),()=>{e==null||e.removeEventListener("reset",t)}},[r,t])}export{v as $};