react-router version is "react-router": "^4.1.1", the route can only be customized in the above way, not the following way. It’s okay to remember the previous version! Now the new version uses this method, which is not convenient for checking directions. Or is there something wrong with what I wrote? Can any of you experts help me solve it?
The route customization after V4 is what you wrote above. Use exact to prevent it from matching downwards. The previous version was what you wrote below. There is no problem.
After 4.0.0, Route tags are not allowed to contain other tags