In React, this.props.history.goback()
and this.props.history.go(-1)
are used to go back to the previous page in the browser. However, these cause the page to hard-reset (i.e., reload) when redirecting to the previous page.
Is there any way to prevent the page from refreshing in an SPA using React?