Check out example codes for "display none asp.net". It will help you in understanding the concepts better.

Code Example 1

div.Attributes.Add("style","display:none");

Learn ReactJs, React Native from akashmittal.com