GoConqr has a new look! Let us know what you think.

Module 23 of 28 · Flowchart

React siblings components

Kostas Diakogiannis

Connecting siblings components

What if we want to pass data through components who are siblings? And not parent and children? Then the solution is to initialize and maintain state to a common parent component of both siblings.

Since they are siblings, they should share a parent component! Then they can both have access to the state of the parent component, passed as props.

Already confused? Let’s see an example!

 

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?