` still, but know that it will not be accounted for in `matchRoutes` outside of render.
```js
import { renderRoutes } from "react-router-config";
const routes = [
{
component: Root,
routes: [
{
path: "/",
exact: true,
component: Home
},
{
path: "/child/:id",
component: Child,
routes: [
{
path: "/child/:id/grand-child",
component: GrandChild
}
]
}
]
}
];
const Root = ({ route }) => (
Root
{/* child routes won't render without this */}
{renderRoutes(route.routes)}
);
const Home = ({ route }) => (
Home
);
const Child = ({ route }) => (
Child
{/* child routes won't render without this */}
{renderRoutes(route.routes, { someProp: "these extra props are optional" })}
);
const GrandChild = ({ someProp }) => (
);
ReactDOM.render(
{/* kick it all off with the root route */}
{renderRoutes(routes)}
,
document.getElementById("root")
);
```