(id: string)
| 2 | import { useMount } from "react-use" |
| 3 | |
| 4 | export const useRooPortal = (id: string) => { |
| 5 | const [container, setContainer] = useState<HTMLElement>() |
| 6 | |
| 7 | useMount(() => setContainer(document.getElementById(id) ?? undefined)) |
| 8 | |
| 9 | return container |
| 10 | } |
no outgoing calls
no test coverage detected