Skip to content

Commit 4d17712

Browse files
authored
chore(google-maps): Fixes to react example in README (#952)
* Add missing useRef import to react example * Fix className for React example
1 parent b3aec2d commit 4d17712

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google-maps/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ export class MyMap {
176176

177177
```jsx
178178
import { GoogleMap } from '@capacitor/google-maps';
179+
import { useRef } from 'react';
179180

180181
const MyMap: React.FC = () => {
181182
const mapRef = useRef<HTMLElement>();
@@ -199,7 +200,7 @@ const MyMap: React.FC = () => {
199200
}
200201

201202
return (
202-
<div class="component-wrapper">
203+
<div className="component-wrapper">
203204
<capacitor-google-map ref={mapRef} style={{
204205
display: 'inline-block',
205206
width: 275,

0 commit comments

Comments
 (0)