You’re using Link
from react-router-dom but your app is not wrapped by a BrowserRouter
. Your index.js
:
import { BrowserRouter } from 'react-router-dom'
render(
<BrowserRouter>
<App />
</BrowserRouter>,
document.getElementById('root')
)