JSFiddle - React, Tailwind, and code Playground

HTML

<!-- Load Leaflet from CDN-->
  <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
  <script src="https://unpkg.com/[email protected]/dist/leaflet-src.js"></script>

  <!-- Load Esri Leaflet from CDN -->
  <script src="https://unpkg.com/[email protected]"></script>


<div id="map"></div>

CSS

body { margin:0; padding:0; }
    #map { position: absolute; top:0; bottom:0; right:0; left:0; }

JavaScript

var map = L.map('map').setView([37.71, -99.88], 4);

  L.esri.basemapLayer('Gray').addTo(map);

  L.esri.dynamicMapLayer({
    // url: 'https://services.arcgisonline.com/arcgis/rest/services/Specialty/Soil_Survey_Map/MapServer',
    url: 'https://sampleserver6.arcgisonline.com/arcgis/rest/services/DamageAssessment/MapServer',
    opacity: 0.7,
    f: 'image'
  }).addTo(map);