react-leaflet
react-leaflet copied to clipboard
[question] Change Center of map if state changes
How can I make that if I change a state that stores the coordinates in a higher component and pass the state as a prop to the map component. How can I make that the center of the map changes if the state changes?