标签: reactjs
将数据从this.props.location.state推送到组件的state的最佳方法是什么?
this.props.location.state
state
构造函数或componentWillMount或componentWillReceiveProps?