javascript - react route 4.1 jump route in event
typecho
typecho 2017-06-28 09:25:14
0
1
717

react route has been updated to 4.1. The browserHistory.push used before jumping the route in the event
After the update, Link jump is not used. What should be used to jump in the bound event? In react route there is no See the introduction

typecho
typecho

Following the voice in heart.

reply all(1)
学习ing
import PropTypes from 'prop-types'
//组件内
static contextTypes = {
    router: PropTypes.object
}
//跳转代码:
this.context.router.history.push(url)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!