¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 23 de 28 · Diagrama de flujo

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!

 

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?