«

react-router-dom v5@^4.0.0跳转

emer 发布于 2019-4-25 14:28   2280 次阅读     


import {withRouter} from 'react-router-dom'
search(){
        this.props.history.push("/?tag=query&txt="+this.state.txt)
    }