Check out example codes for "how to run html code on browser via sublime text". It will help you in understanding the concepts better.

Code Example 1

Steps to Follow:

1.Press Command-Shift-P (if you use a Mac) & Ctrl-Shift-P (if you use Windows) 
to open the Command Palette.

2.Type Install Package until you see that
"Package Control: Install Package" is selected. Press Enter.

3.In the text box, start typing View In Browser until that package is selected.
Once it is, press Enter to install it.

4.Restart Sublime Text.

5.Right Click anywhere on screen and select option : open in browser

6.Bingo! you will land yourself to respective browser and can view your webpage.

Learn ReactJs, React Native from