如题,react-router中如何保证切换过程中保持各部分的状态(比如底部切换过程中,每个页面都不会重新刷新,滚动条还在之前位置?)
在网上看到用vue-router好像可以,react也可以实现这种需求吗
你可以看下即将发布的 React-Router4 , 它的官方示例就有你说的情况
1.4m articles
1.4m replys
5 comments
56.9k users