'Map' is not exported from 'react-leaflet' code example
Example 1: Attempted import error: 'Map' is not exported from 'react-leaflet' (imported as 'LeafletMap').
import { MapContainer, TileLayer, Marker } from 'react-leaflet';
<MapContainer
className="markercluster-map"
center={[51.0, 19.0]}
zoom={4}
maxZoom={18}
>
<TileLayer
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
attribution='© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
/>
</MapContainer>
Example 2: react map example leaflets
<style>.leaflet-container { height: 400px; width: 800px;}</style>
Example 3: react map example leaflets
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.css">