IP Address Tracker with react-leaflet API and IP Geolocation API

Solution retrospective
I am most proud of the responsivity and extra features I added like 'hide map', 'loading' and 'error' messages.
What challenges did you encounter, and how did you overcome them?I had challenges with the asynchronous nature of setState. Any synchronous operation that occurs immediately after will still be using the old state. I overcame it by implementing the loading feature to ensure full data retrieval and state change before (conditional) render.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Arinze Owoh's solution.
Join our Discord community
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