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

Code Example 1

GameObject.Find("PlayMenu 3").SetActive(false);
// you could also store a GameObject as  variable

Code Example 2

gameObject.SetActive(true)

Code Example 3

//This is for unity
GameObject.SetActive(true);

Learn ReactJs, React Native from akashmittal.com