Check out example codes for "how to stop window from terminating c# visual studio". It will help you in understanding the concepts better.
Code Example 1
Console.ReadLine(); //add this to the end of the program and the terminal will not close until another key is entered
Learn ReactJs, React Native from akashmittal.com