Rock-paper-scissors game built with React styled components

Solution retrospective
What are the best practices to avoid 'path issues' (to static assets in the public folder) when deploying React applications to GitHub pages? I normally use paths, like './images/...' to access images, but after deploying the app from my local computer with 'gh-pages', I could not use these links locally (I had to add the website's name???), but I had to keep them for the Github deployment. Thx
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Janos Takacs's solution.
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