When you've not done anything with react-router for a while and the latest version is so very very different 😫

  • 1
    Yeah! I was trying to do it from memory, and was flummoxed by why it wasn't working! Just been having errors with the Link component...apparently you need to install react-router-dom! And if you want the activeClassName, you need to use the NavLink component 😩
  • 0
    Do you still have to construct your URLs manually without named routes? Cause that was the one feature I was shocked that they actually removed, because writing the actual URL in your actual code, is fragile as fuck.

    Using named routes, if you change in the routing table your definition once, it propagates automatically
  • 0
    No IndexLink xD
  • 1
    So its still a pile of fragile garbage then. Good to know I should waste my time
Add Comment