Can props only be passed down the component tree?

Question

In the context of this exercise, can props only be passed down the component tree?

Answer

Yes, props can only be passed down the component tree, or from parent to child components.

It is not possible to pass props from a component to its parent or to its siblings within the same parent component. However, you can pass data, but not props, to the parent by linking a callback function to the child component.

13 Likes