UNPKG
@atlas-kitchen/adyen-web
Version:
latest (6.15.0)
6.15.0
docs.adyen.com/checkout
atlas-kitchen/adyen-web
@atlas-kitchen/adyen-web
/
dist
/
es
/
utils
/
useAutoFocus.js
3 lines
(2 loc)
•
214 B
JavaScript
View Raw
1
2
3
import
{useRef
as
s,useEffect
as
e}
from
"../external/preact/hooks/dist/hooks.js"
;
const
t
=(
)=>{
const
t=
s
(
null
);
return
e
((
()=>
{t.
current
?.
focus
()}),[]),t};
export
{t
as
default
};
//# sourceMappingURL=useAutoFocus.js.map