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
/
src
/
contexts
/
event-target.ts
5 lines
(3 loc)
•
220 B
text/typescript
View Raw
1
2
3
4
5
import
{ createContext, useContext }
from
'react'
;
export
const
EventTargetContext
= createContext<
any
|
undefined
>(
undefined
);
export
const
useEventTarget
:
() =>
any
|
undefined
=
() =>
useContext
(
EventTargetContext
);