JSFiddle - React, Tailwind, and code Playground

HTML

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.9.0/css/ol.css" type="text/css">
	
    <style>
      .map {
        height: 400px;
        width: 100%;
      }
    </style>
    <script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.9.0/build/ol.js"></script>
    <title>COG</title>
  </head>
  <body>
    <h2>COG from https://demo.nextgis.com/api/resource/5511/cog</h2>
    <div id="map" class="map"></div>
    <script type="text/javascript">
	
	
	const source = new ol.source.GeoTIFF({
  sources: [
    {
      url: 'https://demo.nextgis.com/api/resource/5511/cog',
    },
  ],
});

const map = new ol.Map({
  target: 'map',
  layers: [
    new ol.layer.WebGLTile({
      source: source,
    }),
  ],
  view: source.getView(),
});
	  
  

    </script>
  </body>
</html>