React Redirect if this.props.location.state is null

后端 未结 0 1701
别跟我提以往
别跟我提以往 2020-12-04 05:35

I set a Component state with data from this.props.location.state. How can I redirect if it\'s null.

My Application has 2 routes:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题