8000 GitHub - funkyremi/ip-map-react: 📍React component to display IP location on a map 🗺
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

funkyremi/ip-map-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM

Ip Map React

React component to display ip location on a map 🗺.

Screenshot

Demo

Live demo

Live demo

Installation and usage

The easiest way to use react-select is to install it from npm and build it into your app.

npm install ip-map-react --save

Then use it in your app:

import React from "react";
import Map from "ip-map-react";

class App extends React.Component {
  render() {
    return <Map ip="8.8.8.8" width="400" height="400" />;
  }
}

Props

Common props you may want to specify include:

  • ip - IP to locate (By default, the user IP will be used)
  • width - Width of the map (default: 600px)
  • height - Height of the map (default: 300px)

Developpers

Clone the project and start Storybook.

git clone https://github.com/funkyremi/ip-map-react
cd ip-map-react
npm install
npm run storybook

License

MIT

About

📍React component to display IP location on a map 🗺

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0