Set an Instantiated Object as the Component of Another Object

Hi. I need to instantiate a new game object, but I need it to be the component/child of an already existing game object. I tried searchin’ in the scripting references, but to no avail. Thanks in advance!

childObject.transform.parent = parentObject.transform;