I using the survivejs.com site as a template to build a map based React app with webpack. For the map i am using leaflet but i can\'t find a way to add the leaflet.css. With
This code worked for me.
1/ Import leaflet.css directly from leaflet (located inside of node_modules)
2/ Add useEffect, where replace map marker icons (by default markers were not visible, after leaflet.css import)
3/ Render any leaflet components