1.0.11 • Published 4 years ago

use-ipcoords v1.0.11

Weekly downloads
32
License
MIT
Repository
github
Last release
4 years ago

use-ipcoords

React Hook for IP Geolocation lookup using GeoJS.

▶︎ demo

NPM JavaScript Style Guide

Installation

Using yarn:

yarn add use-ipcoords

Using npm:

npm i use-ipcoords --save

Usage

import React from 'react';
import { useIpCoords } from 'use-ipcoords'


export const Example = () => {
    const {
        latitudeIp,
        longitudeIp
    } = useIpCoords();

    return (
        <div>
            latitudeIp : {latitudeIp}<br />
            longitudeIp : {longitudeIp}<br />
        </div>
    );

};

License

MIT © Gords


1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.0

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago