How to pass props on routes to child components by react router?

Posted by Prem Tiwari | Updated on

If you want to pass props on routes to child components by react router? You can’t currently (pre 1.0) do that with React Router. I believe one recommended way is to have wrapper components:

Then these routes:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers