So I\'ve read similar questions but answers were too complex for my understanding. I have not set up a back-end, I just use create-react-app and install react-router-dom, an
So turned out to deploy on a c-panel you need to add a .htaccess in the public folder with this:
Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.html [QSA,L]
Now for refreshing or history, it will refer to index.html