Map placeholder
Live Editor
function MapPlaceholder() {return (<p>Map of London.{' '}<noscript>You need to enable JavaScript to see this map.</noscript></p>)}function MapWithPlaceholder() {return (<MapContainercenter={[51.505, -0.09]}zoom={13}scrollWheelZoom={false}placeholder={<MapPlaceholder />}><TileLayerattribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"/></MapContainer>)}render(<MapWithPlaceholder />)
Result
Loading...