JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://unpkg.com/maplibre-gl@2.1.7/dist/maplibre-gl.js"></script>
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@2.1.7/dist/maplibre-gl.css">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Display a map</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<style>
	body { margin: 0; padding: 0; }
	#map { position: absolute; top: 0; bottom: 0; width: 100%; transform: scale(0.7) }
</style>
</head>
<body>
<div id="map"></div>
<script>
var map = new maplibregl.Map({
container: 'map', // container id
style: 'https://demotiles.maplibre.org/style.json', // style URL
center: [-73.935242, 40.730610], // starting position [lng, lat]
zoom: 5 // starting zoom
});
var marker = new maplibregl.Marker({draggable:true}).setLngLat([-73.935242, 40.730610]).addTo(map);
</script>
 
</body>
</html>