How to include “leaflet.css” in a React app with webpack?

前端 未结 6 1657
忘掉有多难
忘掉有多难 2021-01-19 02:09

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

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-19 02:44

    I have worked with leaflet and adding the leaflet to the index.html worked correctly. Usually, you dont add CSS files in JSX. All styling and external libraries are added in the index.html.

    In my case it is index.jade. Implemented the open street map using leaflet and reactJS.

提交回复
热议问题