Design comparison
SolutionDesign
Solution retrospective
I first used the useLocalStorageState hook from the react-localstorage-hooks package to store the links on the localStorage.But due to some version conflicts I replaced with an good old custom hook. I also used react query to do the shorten url requests to the API. I'm not the experienced with React Query, but it seems quite similar to RTK query which I've used before. In general, it's a nice fun challenge.
Any tips or questions you might have are welcome!
Community feedback
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