Bakar23• 140
@MajinBakar
Posted
<Map /> props are immutable, you can't pass the state (lat & lng) directly. You must create a child component of <MapContainer/> and use useMap() and panTo().
Marked as helpful
0
I did everything but my map isn't working correctly if someone could help if would be happy!
@MajinBakar
Posted
<Map /> props are immutable, you can't pass the state (lat & lng) directly. You must create a child component of <MapContainer/> and use useMap() and panTo().
Marked as helpful
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord