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 Lifting State up

why not Application state

if the Application state can be accessible to all components in the App. why not use that one but rather lifting state up?

2 Answers

Rachel Johnson
STAFF
Rachel Johnson
Treehouse Teacher

Hey eric yeboah , thanks for your question!

I'm not 100% sure what you mean, but I will do my best! When Laura talks about "lifting the state" up, she is moving the state up to the Application level, which I believe is what you're asking about. Once the state is at the Application level, it can be passed down to all of its child components via props - which you'll see demonstrated in that video and subsequent videos.

Is that what you are asking?

ow i understand now . i wish there could be another example.