You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React components can make use of other React components. When a component contains another component it can be said that the parent component owns the child component (composition).
4
+
5
+
In the code below the `ParentComponent` component contains/owns the `FirstChildComponent` and `SecondChildComponent` component.
6
+
7
+
<pdata-height="265"data-theme-id="dark"data-slug-hash="Vxqgpo"data-default-tab="js,result"data-user="Bunlong"data-embed-version="2"data-pen-title="Vxqgpo"class="codepen">See the Pen <ahref="https://codepen.io/Bunlong/pen/Vxqgpo/">Vxqgpo</a> by Bunlong (<ahref="https://codepen.io/Bunlong">@Bunlong</a>) on <ahref="https://codepen.io">CodePen</a>.</p>
0 commit comments