eug*_*ene 5 reactjs react-router react-native
在你的 clickHandler 上说
你做
// url change will cause this component to be dismounted and a new component will mount
history.push(url)
// do some more work
dispatch(someMoreWork())
Run Code Online (Sandbox Code Playgroud)
push
调用后代码会发生什么?代码能保证运行吗?
归档时间: |
|
查看次数: |
739 次 |
最近记录: |