react-router-dom v5@^4.0.0跳转

Others 2019-04-24 18:28:37 2019-04-24 18:28:37 2483 次浏览
import {withRouter} from 'react-router-dom'
search(){
        this.props.history.push("/?tag=query&txt="+this.state.txt)
    }