最佳答案
I am adding react router to an existing project.
At present a model is passed in to a root component which contains a navigation component for the sub navigation and a main component.
The examples of react router I've found only have one child component, what is the best way to have multiple child components change without repeating the layout code in both?