Submitted over 1 year ago
Responsive IP Address tracker using react js and tailwind css
@aryandogra2003
Design comparison
SolutionDesign
Solution retrospective
Open to feedbacks
Community feedback
- @fazzaamiarsoPosted over 1 year ago
Hi Aryan, Great job overall!
I have a quick tip to improve readability for constructing complex url using URL constructor. Ex:
const BASE_URL = 'https://geo.ipify.org/api/v2/'; const isIpValid = checkIpAddress.test(ipAddress); const isDomainValid = checkDomain.test(ipAddress); const enteredURL = new URL('country,city', BASE_URL); enteredURL.searchParams.set('apiKey', 'test'); if (isIpValid) enteredURL.searchParams.append('ipAddress', ipAddress) else if (isDomainValid) enteredURL.searchParams.append('domain', ipAddress);
I hope it helps! Cheers!
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin 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