Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 911 Bytes

File metadata and controls

13 lines (10 loc) · 911 Bytes
title Composing Components
permalink /composing-components
excerpt Composing Components - Learn React
last_modified_at 2018-05-19 15:58:49 -0400

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).

In the code below the ParentComponent component contains/owns the FirstChildComponent and SecondChildComponent component.

See the Pen Vxqgpo by Bunlong (@Bunlong) on CodePen.

<script async src="https://static.codepen.io/assets/embed/ei.js"></script>