From 0fdc02e4ce6749e2d6efc634a6745242b2b929ec Mon Sep 17 00:00:00 2001 From: Joe Duncko Date: Mon, 14 Nov 2022 12:20:07 -0500 Subject: [PATCH] Fix small typo in `map.md` (#2014) --- 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 74047400..f091ca9e 100644 --- a/docs/api-reference/map.md +++ b/docs/api-reference/map.md @@ -42,7 +42,7 @@ function App() { } ``` -The [MapRef](/docs/api-reference/types.md#mapref) object exposes [Map methods](https://docs.mapbox.com/mapbox-gl-js/api/map/#map-instance-members) that **are safe to call without breaaking the React bindings**. For example, `setStyle()` is hidden from the ref object, because the style is supposed to be changed by updating the `mapStyle` prop. Calling the method directly may cause the the React prop to mismatch with the underlying state, and lead to unexpected behaviors. +The [MapRef](/docs/api-reference/types.md#mapref) object exposes [Map methods](https://docs.mapbox.com/mapbox-gl-js/api/map/#map-instance-members) that **are safe to call without breaking the React bindings**. For example, `setStyle()` is hidden from the ref object, because the style is supposed to be changed by updating the `mapStyle` prop. Calling the method directly may cause the the React prop to mismatch with the underlying state, and lead to unexpected behaviors. You can still access the hidden members via `getMap()`: