background:
purpose brief: click the button, adjust this.props.history.push () to cause the change of location, and judge in componentWillReceiveProps that if prev.location and next.location, are not equal, the mask layer is displayed.
question
first declare that the current component does not have child components. Printing a random console.log (XXX), in componentWillReceiveProps is executed (printed) twice. Why?