You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, the `GoogleApiWrapper` Higher-Order component can be configured by passing a function that will be called with whe wrapped component's `props` and should returned the configuration object.
36
+
37
+
```javascript
38
+
exportdefaultGoogleApiWrapper(
39
+
(props) => ({
40
+
apiKey:props.apiKey,
41
+
language:props.language,
42
+
}
43
+
))(MapContainer)
44
+
```
45
+
35
46
## Sample Usage With Lazy-loading Google API:
36
47
37
48
```javascript
@@ -90,7 +101,7 @@ initalCenter: Takes an object containing latitude and longitude coordinates. Set
90
101
onClick={this.onMapClicked}
91
102
>
92
103
```
93
-
center: Takes an object containing latitude and longitude coordinates. Use this if you want to re-render the map after the initial render.
104
+
center: Takes an object containing latitude and longitude coordinates. Use this if you want to re-render the map after the initial render.
94
105
95
106
```javascript
96
107
<Map
@@ -104,7 +115,7 @@ center: Takes an object containing latitude and longitude coordinates. Use this
0 commit comments