use-ipcoords

    1.0.11 • Public • Published

    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


    Install

    npm i use-ipcoords

    DownloadsWeekly Downloads

    40

    Version

    1.0.11

    License

    MIT

    Unpacked Size

    1.15 MB

    Total Files

    24

    Last publish

    Collaborators

    • gords