I am trying to move from one-page App.js to addWork.js. I added a button to redirect the user to addWork.js in App.js but the strange thing is that the page is redirecting to the same page(App.js interface) but the URL change to be addWork.
I used the following code in render():
<Router>
<Route>
<button type="button" id="Add-new-work" > <Link to='/addWork'>Add new work</Link></button>
</Route>
</Router>