javaLuo / react-luo

React Automatically - 保持最新技术 react18 hooks router6 webpack5 babel7 antd4
https://isluo.com/work/pwa/
MIT License
312 stars 71 forks source link

服务器记录路由跳转 #26

Open zhans1993 opened 6 years ago

zhans1993 commented 6 years ago

有什么办法可以在服务器记录路由跳转呢? 就是 react router 的变化 ,我目前只想到把工程拆分多页面,,用experss 做路由分发,罗哥有啥其他的思路么?谢谢

javaLuo commented 6 years ago

react-router的Route中配置render事件,在render事件里记录本次路由。合适的时机传给后台 暂时只能想到这样做吧

不知道有没有这样的插件