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

Code Example 1

GameObject newObj = new GameObject("Name");
Instantiate(newObj, Vector3.zero, Quaternion.identity);

Code Example 2

objToSpawn = new GameObject("Cool GameObject made from Code");

Learn ReactJs, React Native from akashmittal.com