How does react realize the routing jump by clicking on the element?

use hashRouter , click on the tag to set the currently selected tag through redux , and then use what method to perform route redirection? Is there a push method like vue?

<Tag
  color={this.props.tag === tag.name ? "green" : "orange"}
  key={index}
  onClick={() => {
    this.props.setTag(tag.name)//
  }}
>
  {tag.name}
</Tag>
Jun.30,2022

history.push ()


this.props.history.push('')
Menu