I'm running into something weird, and i'm not sure why it's happening. I'm using the HashRouter from React-Router-Dom because i'm trying to host my portfolio on Github Pages. When i link to a new page, the new page loads perfectly, but it seems to take me to the bottom of the new page, and not the top. Does anyone know why this might be happening?
app.js:
<HashRouter>
<div>
<Navigation />
<Switch>
<Route exact path="/" component={Home} />
<Route path="/About" component={About} />
<Route path="/MyHumber" component={MyHumber} />
<Route path="/Foragr" component={Foragr} />
<Route path="/TheWatchlist" component={TheWatchlist} />
</Switch>
</div>
</HashRouter>
link:
<Col lg={6}>
<h1 className="project-title">{this.state.title}</h1>
<p>{this.state.description}</p>
<Link to={this.state.path}>
<Button>View Project</Button>
</Link>
</Col>