You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I'm trying to import withLeaflet from react-leaflet but not exists. I'm using the version: "react-leaflet": "^3.2.5". any sugestion/help to solve this?
The text was updated successfully, but these errors were encountered:
withLeaflet is used to be a High Order Component, to use with class-based React. Two things to take note of:
react-leaflet v3 is no longer maintained. See here.
a. withLeaflet is probably from v2.
b. I recommend you move to v4.
If you absolutely need to use v3, then, High Order Components are no longer available. Use their hooks instead!
a. I believe useMap is the hook you are looking for.
Hi I'm trying to import withLeaflet from react-leaflet but not exists. I'm using the version: "react-leaflet": "^3.2.5". any sugestion/help to solve this?
The text was updated successfully, but these errors were encountered: