import React, { Component } from 'react'; import { Map, TileLayer, Marker, Popup } from 'react-leaflet'; class MainMap extends Component { state = { lat: 51.505, lng: -0.09, zoom: 13, } render() { const position = [this.state.lat, this.state.lng] return ( A pretty CSS3 popup.
Easily customizable.
) } } export default MainMap;