Parent component is just A relative term. A refers to B, so A is the parent component of B, and B is the child component of A. Parent to child components generally use props. First in the parent component, define the corresponding data, write the child component application area. C and D are equivalent to interfaces.

Then write interfaces C, D in the child component. As shown below: