How to deploy a react app to GitHub via the GitHub Desktop?

Hey there. I’m new to this community, so I am not even sure if I am asking at the right place.
Basically, I just want to deploy my react project to a GitHub repository. Usually I upload my JavaScript projects with GitHub Desktop very easily, but I’ve never uploaded a React app before. It’s a bit more complicated because I am not sure if I have to upload or publish the build folder only, or the entire project folder?

Few hours ago, I tried publishing the entire folder, and it did got published, but it didn’t have the index.js file, so I thought most likely I have to only publish the build folder, but I couldn’t. I don’t know was it because I had made the mistake of creating the react app in the system 32 folder, or was it because of something else, GitHub Desktop just didn’t let me remove the initial commit, and re-open and re-publish only the build folder. I spent over an hour trying to figure out how to get rid of the old rep, and publish a new one, but I couldn’t. So, I just re-created the project in a new directory, and now at least I know the access shouldn’t be restricted, but I need to which what to publish. Do I publish the build folder only, or what?

I can recommend you learning the basics of git.
This will probably make things more clear how GitHub works.

This will give a short introduction:
https://rogerdudler.github.io/git-guide/index.html