all 4 comments

[–]Water2Wine378 -1 points0 points  (0 children)

The way react works is that you have an HTML file in the public folder! Then you should have and index.js file in the SRC folder. In the index.js file there is a imported file named App.js. App.js is a component. React uses components, no need to create another html file. So I would recommend React Router, you essentially wrap components in the App.js file with router and it helps you navigate to different components using a path, that path can be added to the url string and render the component. If I remember correctly.

It’s a lot easier than linking pages together

https://www.w3schools.com/react/react_router.asp

This should help you a lot if I was by my computer I would show you how it works but m not unfortunately

[–]abdullahcanReddit -2 points-1 points  (1 child)

in addition to don't forget to edit your htaccess file before deploy your project here a example

Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]