Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

Solution using Next.js

next, react, sass/scss
Kim Daniel Koch•30
@Kimbo0o
A solution to the IP Address Tracker challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


The map component did not automatically update the position by changing the values. I decided to remove and add the map when I update the position values. I would like to know if there is a better solution to achive the same behaviour.

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Carlos Martinez•310
    @curlos
    Posted about 3 years ago

    Not sure what you mean by the map component not automatically updating the position? From what I can tell the map updates the position when a new value is entered. Also, I believe the IP Address that should show up on the page when the user enters should be their own IP address. Right now it is showing a different IP address and location to my own upon first entering.

    You got everything else down for the most part. Maybe add a tooltip on top of the marker with some info like the location or IP address.

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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub