React Router Netlify 404 Issue

If you are trying to deploy a project that you use a react router to the netlify service and it actually works very well, but if you say that it gives a 404 error when you change the route and refresh the page, what you will do is very simple.

Create a file named _redirects inside the public folder. This file does not have an extension, create it without the extension.

And paste the following into it;

/*    /index.html   200

Then get build and deploy and test, you will see that it works without any problems.

Comments

There are no comments, make the firs comment