Skip to content

Commit

Permalink
Update map.md (#2396)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoenickx authored Jul 5, 2024
1 parent a36f1a3 commit e003343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-reference/map.md
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ import Map from 'react-map-gl';
import type {MapRef} from 'react-map-gl';

function App() {
const mapRef = useRef<MapRef>();
const mapRef = useRef<MapRef>(null);

const onMapLoad = useCallback(() => {
mapRef.current.on('move', () => {
Expand Down

0 comments on commit e003343

Please sign in to comment.