Check out example codes for "unity create gameobject from prefab in script". It will help you in understanding the concepts better.
Code Example 1
using UnityEngine;
public class example : MonoBehaviour
{
public GameObject prefab;
// Start is called before the first frame update
void Start()
{
Instantiate(prefab, new Vector3(0, 0, 0), Quaternion.identity);
}
}
Code Example 2
Instantiate(myPrefab, new Vector3(0, 0, 0), Quaternion.identity);
Code Example 3
Instantiate(cube, Vector3 (x, y, 0), Quaternion.identity);
Learn ReactJs, React Native from akashmittal.com