react-router-dom 4 传递参数,非路径

this.props.history.push({ pathname:'/user',state:{day : 'Friday' } })
// uesr      
this.props.location.state.day

你可能感兴趣的:(react-router-dom 4 传递参数,非路径)