dether-react-map

1.0.3 • Public • Published

dether-react-map

dether-react-map is a React component allowing to easily locate shops and tellers from the dether protocol

NPM JavaScript Style Guide

Install

npm install --save dether-react-map

Usage

You must pass rpcURL as a props, it must be an infura URL like this: You can either choose kovan for testnet or mainnet.

import React, { Component } from 'react'
 
import DetherReactMapfrom 'dether-react-map'
import 'dether-react-map/dist/index.css'
 
const rpcURL='https://kovan.infura.io/v3/xxxxxxxxxxxxxxxx'
 
class Example extends Component {
  render() {
    return <DetherReactMap width='100%' height='400px' rpcURL={rpcURL} />
  }
}

Example

You can find one example here

License

MIT © dethertech

Readme

Keywords

none

Package Sidebar

Install

npm i dether-react-map

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

279 kB

Total Files

9

Last publish

Collaborators

  • dether.io