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>