How to get current route in react-router 2.0.0-rc5

后端 未结 9 1291
无人及你
无人及你 2020-12-08 18:05

I have a router like below:


    
        
          


        
9条回答
  •  臣服心动
    2020-12-08 18:34

    If you use the history,then Router put everything into the location from the history,such as:

    this.props.location.pathname;
    this.props.location.query;
    

    get it?

提交回复
热议问题