Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

IP Address Tracker with ViteJS and TailwindCSS

Abiโ€ข 300

@abimh66

Desktop design screenshot for the IP Address Tracker coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
3intermediate
View challenge

Design comparison


SolutionDesign

Solution retrospective


Feel free to leave comments, Your feedback is greatly appreciated. Thank You๐Ÿ™

Community feedback

Petrit Nurediniโ€ข 2,860

@petritnuredini

Posted

Congratulations on completing your IP Address Tracker project! It's a significant achievement, and your dedication to learning and improving your skills is commendable. Here are a few suggestions to make your project even better:

  1. Environment Variables for API Keys:

    • It's great to see you integrating APIs into your project. However, consider storing your API key (API_KEY) in environment variables. This prevents the key from being exposed in your source code, which is a security best practice. You can learn more about environment variables in React here.
  2. Responsive Design in React Components:

    • Your use of a resize listener in the Header component is a clever way to handle responsive design. However, this could potentially impact performance. An alternative approach is using CSS media queries directly. This reduces the complexity of your JavaScript and offloads the responsiveness to CSS, which is more efficient. Here's a good guide on CSS Media Queries.
  3. Error Handling in Fetch Requests:

    • You've implemented error handling in your data fetching function, which is excellent. To enhance this, consider providing more detailed feedback to the user when an error occurs. This could include different messages for network errors, invalid input, or when the data is not available. This makes your app more user-friendly and informative. Hereโ€™s a resource on error handling in React.

Keep up the great work! Remember, every project you build adds to your experience and skill set. Your progress is commendable, and I encourage you to continue exploring and pushing your boundaries. Happy coding! ๐Ÿš€๐Ÿ‘จโ€๐Ÿ’ป

0

Please log in to post a comment

Log in with GitHub
Discord logo

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