简体   繁体   English

为什么嵌套路由在反应(不渲染)中不起作用?

[英]Why nested routing is not working in react{not rendering)?

enter image description here在此处输入图像描述

I am trying to implement react router which is actually a nested router when i am clicking the links in contact page it is not showing the results.我正在尝试实现反应路由器,它实际上是一个嵌套路由器,当我单击联系页面中的链接时它没有显示结果。 Please help me.请帮我。 Github link: https://github.com/abhinaisai2002/router Github 链接: https://github.com/abhinaisai2002/router

Actually, you are using exact for "/contact" route, that's why nested route is not working, just remove it and try again.实际上,您正在使用exact"/contact"路由,这就是嵌套路由不起作用的原因,只需将其删除并重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM