React leaflet wrapper of leaflet-kml
npm install react-leaflet-kml


React leaflet v3 and v4 wrapper of leaflet-kml.
npm install --save react-leaflet-kmlUsage example:
``javascript
import * as React from 'react';
import { MapContainer } from 'react-leaflet';
import ReactLeafletKml from 'react-leaflet-kml'; // react-leaflet-kml must be loaded AFTER react-leaflet
const kmlText='YOUR KML FILE AS TEXT';
const parser = new DOMParser();
const kml = parser.parseFromString(kmlText, 'text/xml');
export const App = () => {
return (
/>
);
};
``