JSFiddle - React, Tailwind, and code Playground
HTML
<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=false">
</script>
<div id="map" style="width: 200px; height: 200px; background-color: pink"></div>
<div id="loading" >Loading....</div>
JavaScript
var latlng = new google.maps.LatLng(-34.397, 150.644);
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map"), myOptions);
google.maps.event.addListener(map, 'tilesloaded', function(){
document.getElementById('loading').innerHTML = '';
})