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
/
container.ts
7 lines
(4 loc)
•
280 B
text/typescript
View Raw
1
2
3
4
5
6
7
import
{ createContext, useContext }
from
'react'
;
export
type
ContainerContextType
= {
element
:
HTMLElement
|
null
};
export
const
ContainerContext
= createContext<
ContainerContextType
>({
element
:
null
});
export
const
useContainerContext
= (
) =>
useContext
(
ContainerContext
);