I tried everything I found on the web, Stackoverflow and Github, and I still can\'t make it.
I want to make a custom marker with a custom icon, but with my code belo
I was brought here while trying to figure out how to render a custom icon server side (using react-leaflet-universal). I thought I'd post this in case anyone in the future finds themselves here for the same reason. Just as in the case of react-leaflet-markercluster, I was able to get this working by requiring leaflet inside the return function like: