在React Router中通过this.props.history.push('/ xyz)传递参数

时间:2018-08-09 08:34:27

标签: reactjs react-router

我需要使用react路由器中的react路由器将某些参数从一个组件传递到另一个组件

clicked =()=>{
         //alert('clicked');
         this.props.history.push('/roles')// we need to pass paramters through this
    }

我们需要在角色指向的组件中检索由此传递的参数。

0 个答案:

没有答案