Skip to content

Commit

Permalink
Update docs for useGeolocation
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed Apr 23, 2019
1 parent b33802d commit f7e7133
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/useGeolocation.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# `useGeolocation`

React sensor hook that tracks user's geographic location.

React sensor hook that tracks user's geographic location. This hook accepts [position options](https://developer.mozilla.org/docs/Web/API/PositionOptions).

## Usage

Expand All @@ -18,3 +17,9 @@ const Demo = () => {
);
};
```

## Reference

```ts
useGeolocation(options: PositionOptions)
```

0 comments on commit f7e7133

Please sign in to comment.