leaflet center map in function component code example
Example 1: react map example leaflets
<style>.leaflet-container { height: 400px; width: 800px;}</style>
Example 2: react map example leaflets
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.css">