JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet.css">
<script src="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet-src.js"></script>
<div id="map"></div>

CSS

#map {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: solid 3px #654;
}

JavaScript

var map = L.map('map');

L.tileLayer(
  'http://{s}.tile.cloudmade.com/aff5f0a045214943abd9139dba7ddc79/997/256/{z}/{x}/{y}.png',
  {maxZoom: 18}
).addTo(map);

map.setView([44.06, -121.31], 10);

document.getElementById('map').style.display = 'block';

// Uncommenting  this line causes map to render properly
map.invalidateSize();