Skip to content

Commit

Permalink
docs: clarify usage of useMapsLibrary hook (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
lacymorrow authored Sep 4, 2024
1 parent 04fad04 commit 89167bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/api-reference/hooks/use-maps-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ const MyComponent = () => {

// ...
};

// Make sure you have wrapped the component tree with the APIProvider
const App = () => (
<APIProvider apiKey={/* ... */}>
{/* ... */}
<MyComponent />
</APIProvider>
);
```

## Signature
Expand Down

0 comments on commit 89167bc

Please sign in to comment.