To upload react app on git hub with the link:
Step 1:
Make a 404.html file in the public folder
|
Step 2:
Copy this block of code into the index.html Public folder itself
|
Step 3:
Now go to the src folder → index.js (for React router dom)
|
Step 4:
Go to package.json and paste this line after the name line having the link of your GitHub repo.
|
Step 5:
Now run this command in your terminal
|
Step 6:
Add these commands in your package.json
|
Step 7:
Commit all of your data on the git hub
Step 8
Now deploy your website by running this command
|
BONUS:
Use the image given below for no further problems
|