Home  >  Q&A  >  body text

javascript - react-router route nesting problem?

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?

伊谢尔伦伊谢尔伦2662 days ago744

reply all(2)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-07-05 10:51:06

    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.

    reply
    0
  • 某草草

    某草草2017-07-05 10:51:06

    After 4.0.0, Route tags are not allowed to contain other tags

    reply
    0
  • Cancelreply