Whenever I click the login button, I am navigated to a blank page with the homepage link appended to the login page link. It looks like this: Here is the image
Here is my code for the login button.
<Button onClick={() => {navigate("./homePage")}} className='Createuserbutton' >Login </Button>
Here is my index.js code containing the router elements.
<Router>
<Routes>
<Route exact path='/login' element={<Login />} />
<Route exact path='/ModuleReviewForm' element={<ModuleReviewForm />} />
<Route exact path='/commentBox' element={<CommentBox />} />
<Route exact path='/homePage' element={<HomePage />} />
<Route exact path='/logout' element={<Logout />} />
<Route exact path='/account' element={<Account />} />
<Route exact path='/searchPage' element={<SearchPage />} />
<Route exact path='/searchPage' element={<SearchPage />} />
</Routes>
I am wondering if I am referencing the page properly