UNPKG

@r2don/react-naver-map

Version:

## Introduction

11 lines (10 loc) 585 B
import type { UseNaverMapInit } from "./types"; /** * Load naver map script with provided client id. * * `Map` component will automatically load script. But, if you want to load naver map script in advance, you can use this hook. * * @param onLoad - This function will triggered when loading script finished. If 'onLoad' changes too often, wrap that definition in useCallback * @param onError - This function will triggered when loading script failed. If 'onError' changes too often, wrap that definition in useCallback */ export declare const useNaverMapInit: UseNaverMapInit;