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 trialSamuel Kleos
Front End Web Development Techdegree Student 13,728 PointsIncorrect Statement? "This props parameter allows us access to the data passed from the parent component."
See 00:30 where the video references the Header component while then adding the prop into the Header JSX tag while the voice-over says: "This props parameter allows us access to the data passed from the parent component."
1 Answer
Brian Jensen
Treehouse StaffHiya Samuel Kleos!
That is a correct statement.
As this is just a course recap video, the full context of the app is not shown. It is in reference to this video where the title
and itemTotal
props are being passed to the <Header title='Grocery List' itemTotal={1} />
component, from it's parent component <App />
.
Does that make sense?