How can this.state of the update component be triggered every time the URL is entered?

  node.js, question

Is to enter the URL on the browser, (react-router for routing) and then you can change the state of React components to render different effects. Which function of React should you use? Hope to have an example, thank you! !

react-routerIts function is to render different components according to different url configurations. .