If you have tried to deploy a React App with react-router-dom to github pages, probably you'll hate yourself because it won't work as you expected 😔.
So if you don't know gh-pages deploy your React App
to this url
and in your App the "/" route means this url
Now deploy again your changes with
npm run deploy