Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript React Components Data Flow Communicating between Components

Rachel Heneault
PLUS
Rachel Heneault
Courses Plus Student 12,155 Points

Explain how data is recognized from child to parent

I didn't understand the explanation in the video. Can you explain this in a different way?

2 Answers

Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

Hi Rachel Heneault, in React the expression "lifting state" is where / how you can uplift state that may be passed down through props to child components, which is achieved by passing a function/handler as a prop to the child component that is triggered via an event the user makes (e.g. a click event), which will then therefore update the value in state sending it back to the component that state is defined in (Usually your top level entry App component in most cases).

For more information, please check out the official React documentation

this is so confusing. the way props are passed is making it so confusing for me. i understand props though. i guess the modules are making it confusing, by navigating through them.

i wish there can be several examples to explain a particular idea.