UNPKG
@h4wldev/react-naver-maps
Version:
latest (0.1.7)
0.1.7
0.1.6
0.1.5
0.1.4
React Navermaps API integration for modern development.
h4wldev/react-naver-maps
@h4wldev/react-naver-maps
/
dist
/
chunk-DEGB326C.mjs
14 lines
(13 loc)
•
283 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// src/hooks/use-previous.ts
import
{ useRef, useEffect }
from
"react"
;
function
usePrevious
(
state, deps
) {
const
ref =
useRef
();
useEffect
(
() =>
{ ref.
current
= state; }, deps);
return
ref.
current
; }
export
{ usePrevious };
//# sourceMappingURL=chunk-DEGB326C.mjs.map