konum
v1.0.1
Published
A simple browser location hook for React
Downloads
2
Maintainers
Readme
Konum
Konum (means location in Turkish) is a primary browser location provider for React.
Installation
yarn add konum
#or
npm i konum
Usage
import { useKonum } from "konum";
const { data, isAllowed, error } = useKonum();
Props
| Props | Type | Description | | ------------- | ------- | ------------------------------------------------- | | data | object | It returns two attributes longitude and latitude. | | isAllowed | boolean | It changes based on user's allow. | | error | string | It returns error message |
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.