Type '{ path: string; UsersComponent: typeof UsersComponent; }[]' is missing the following properties from type 'Router': rootComponentType, urlSerializer, rootContexts, location, and 48 more.ts(2740) code example
Example: Type '{}' is missing the following properties from type 'RouteComponentProps': history, location, matchts(2739)
Child component doesn't have router props typescript
Two ways to fix this
1. use withRouter(ChildComponent);
2. pass parentProps to Child e.g. <Child {...props} />