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

Code Example 1

// Use 'new GameObject' to create a new GameObject in the current scene
SpawnedObject = new GameObject("Created GameObject");

Code Example 2

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

Code Example 3

/// <summary>
/// Creates a new Gameobject called Name_1
/// </summary>
public void AddGameObject()
	GameObject testObject = new GameObject("Name_1");

Learn ReactJs, React Native from