Page not found Error in Netlify while using React-Route

what happens here is, that you probably don’t have an index.html file in the root directory, like most, react apps you would have it in the public directory, but Netlify doesn’t make the effort to look over there Therefore u get the 404 error since it doesn't find an HTML file in the root dir to fetch and display.

To solve this error you need to add _redirects file in your director containing index.html file and in that _redirects file put

/* /index.html 200

In this code 200 is the status code so that it does not give a 404 error

--

--