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 Router 4 Basics Going Further with Routing Passing Data to Components Via Routes

Carey Cade
Carey Cade
5,283 Points

Possible to pass props via Link?

Is it possible to pass props via Link? If I had a table or list, where Link would take me to a detail page for that row, is it possible to pass props in a similar way like it's done from parent to child component?

Thanks!

1 Answer

Steven Parker
Steven Parker
231,261 Points

By "props" do you mean "properties"? And if by "from parent to child" you're talking about inheritance, that only applies to items in the same document. There would be no inheritance by items on a different document (page).