Check out example codes for "regions unity". It will help you in understanding the concepts better.

Code Example 1

#region Region Name
// Put your code here
#endregion

/* 
   *Ctrl-M twice to close it
   *Click on the region to close it
   *Click on it and press Ctrl-H to search it
*/

Learn ReactJs, React Native from akashmittal.com