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

Code Example 1

string enemyTag = "Enemy";
Enemies = GameObject.FindGameObjectsWithTag(enemyTag);

Learn ReactJs, React Native from akashmittal.com