This is a solution to the IP address tracker challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for each page depending on their device's screen size
- See hover states for all interactive elements on the page
- See their own IP address on the map on the initial page load
- Search for any IP addresses or domains and see the key information and location
- Mobile-first workflow
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- json-server for testing
- express
- axios
-
use object-fit:cover to clip image if it doesn't fit the width
.background-img { object-fit: cover; width: 100%; height: 250px; }
-
how to build backend with express
-
usage of ref to get properies of Component and use them on the same instance
-
use useMemo to cache the results value so that it doesn't render again if i ask same api
-
use express to build backend service