I am trying to use leaflet.heat in reactJS. I have already made leaflet library to work with react hooks but unfortunately I can't use leaflet.heat in react. I import the module like:
import "../libraries/HeatLayer";
And the code for HeatLayer.js is: https://github.com/Leaflet/Leaflet.heat/blob/gh-pages/src/HeatLayer.js
When I run the react app I do not get any errors but the leaflet heatmap is not displayed
NOTE: I don't want to use components such as react-leaflet nor react-leaflet-heatmap.