react学习---向路由组件传递state参数


通过state参数传递的特点

  • 通过state参数传递不会显示在地址栏中。

Link形式

路由形式

接收形式

备注:刷新也可以保留住参数