Design comparison
Solution retrospective
Hi Everyone, This project had some challenges but I went throw them. I have a question if someone knows how to deploy react vite app with routing to GitHub pages?
All answers and feedback are appreciated and welcomed.
Have a happy new year y'all
Community feedback
- @zubyCharlesPosted almost 2 years ago
Awesome project but there’s an issue I noticed. When using the search input to search for a particular country, the search only works if the name of the country to search is typed all in lowercase. If you type the first letter of the country in uppercase the search won’t work. I suppose it’s because all the country names are stored in lowercase on the database. So you need to convert the search query to lowercase before comparing.
1@BeshoySPosted almost 2 years ago@zubyCharles Thank you Ibenyenwa, I fixed this one, but now I still have a problem with the routing (react-router-dom 6.6+) when deploying the vite app, do you have any references or solutions for it?
Update I think I fixed the routing by changing createBrowserRoutes to createHashRoutes and adding to the useNavigate in both "Details" & "Card" components option called "relative: "route""
0@zubyCharlesPosted almost 2 years ago@BeshoyS cool fix. I don’t know much about this workaround. Will have to read more on it.
1
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