React website throw a 404 page not found error on reloading the page.

Author: DebojyotibabaiCreated Feb 12, 2021Updated Aug 30, 2023

Whenever I reaload my react website, it throws me page not found error. What I suppose to do? But there is no issue with my other react projects that has been deployed in github.

To push new/updated code to my gthub repo, I write this code ->

  1. git add .
  2. git commit -m "change css"
  3. git push origin master
  4. npm run deploy

What is the problem?

Capture