1.0.11 • Published 6 years ago

use-ipcoords v1.0.11

Weekly downloads
32
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.0

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago