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

Code Example 1

{ visibility: hidden; }   
{ visibility: visible; }  
{ visibility: collapse; }

Code Example 2

/*Hiding an element can be done by setting the display property to none. 
The element will be hidden, and the page will be displayed as if the element is not there:
Example:
*/

h1.hidden {
  display: none;
}

/*visibility:hidden; also hides an element.
However, the element will still take up the same space as before. 
The element will be hidden, but still affect the layout:
Example:
*/

h1.hidden {
  visibility: hidden;
}

Code Example 3

.classname {
    visibility: hidden;
}

Code Example 4

.classname {
    display: none;
}

Code Example 5

display:none;

Learn ReactJs, React Native from akashmittal.com