UNPKG
@kcirtaptrick/framer-motion
Version:
latest (6.2.9)
6.2.10
6.2.9
A simple and powerful React animation library
github.com/framer/motion
framer/motion
@kcirtaptrick/framer-motion
/
dist
/
es
/
utils
/
use-unmount-effect.mjs
8 lines
(5 loc)
•
192 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{ useEffect }
from
'react'
;
function
useUnmountEffect
(
callback
) {
return
useEffect
(
function
(
) {
return
function
(
) {
return
callback
(); }; }, []); }
export
{ useUnmountEffect };