Just like backend, frontend project has to be hosted so that the users could access it online. Instead of hosting your project locally, it is best to deploy your web app online so that it would be accessible.
Netlify allows extremely easy and beginner friendly deployment options for frontend projects. Just follow the steps below and your app will be online in no time!
Open terminal in your project and do the npm run build command.
Soon you will have created a build folder.
Now inside of the build folder create _redirects file (with no extension) Inside of it paste only the following /* /index.html 200 (including the /* )
If you skip this step you are potentially risking having the Page not found error 404. For explanation why this is necessary you may read on the following link: Netlify redirects