reactjs ensure parent child relationship -


suppose i've created 2 elements -- parent , child

is there way ensure child element contained parent? want ensure dom looks --

<parent>   <child /> </parent> 

and never

<someotherelement>     <child /> </someotherelement> 


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -