Skip to content

Back to React Recipes

How React components talk to each other

Parent-child communication

The fundamental composition pattern in React is that a parent component will send props to the child component.

The props can be divided into two main categories:

Sibling communication

When two sibling components want to communicate between

Ancestor-descendant communication