Check out example codes for "my github page doesn't work". It will help you in understanding the concepts better.

Code Example 1

The preferred files to be served are index.html,, and, 
in that order. If none of these files exist, your website will show a 404 
Not Found error, even if there are other HTML files in the repository.

Learn ReactJs, React Native from