From e003343718d120df1242c17ad7b36c9301b12de3 Mon Sep 17 00:00:00 2001 From: Danny Noenickx Date: Fri, 5 Jul 2024 16:09:14 -0400 Subject: [PATCH] Update map.md (#2396) --- docs/api-reference/map.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-reference/map.md b/docs/api-reference/map.md index 0ad33c01f..bbd99c477 100644 --- a/docs/api-reference/map.md +++ b/docs/api-reference/map.md @@ -577,7 +577,7 @@ import Map from 'react-map-gl'; import type {MapRef} from 'react-map-gl'; function App() { - const mapRef = useRef(); + const mapRef = useRef(null); const onMapLoad = useCallback(() => { mapRef.current.on('move', () => {