![]() |
|
[Javascript] Routing Linking, idk where i mess up - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183) +---- Thread: [Javascript] Routing Linking, idk where i mess up (/showthread.php?tid=6127550) |
Routing Linking, idk where i mess up - de_g3ntl3m4n - Dec 15, 2020 Please just look at this -> https://codesandbox.io/s/misty-sound-gvpcs?fontsize=14&hidenavigation=1&theme=dark Basically, whenever I try changing the URL my page doesn't load, trying to make it load like a single page application with react-router-dom I am literally doing the same things I other YouTubers do and still when I do it, it just doesn't want to work. Can someone just please let me know what is wrong. I tried doing the Route in one line and then putting the component between Code <Route></Route>And nothing... I still get that one page to show up even though the URL is different, at this point I'm just losing my mind, when I copy someone else's code it works, but when I type it up myself.... it doesn't work... what the f is life. If you tell me there is a typo with something I will cry, been at this for like 2 hours... im fucking dead.. just look at my code and realized in my route I put to instead of path.. i am going to go cry now, sorry for wasting your time |