问题描述 TS2322 "is not assignable to type"
react-router 4.0
typescript 2.3.x
TS2322: Type '{ path: string; key: string; component: ComponentClass<RouteComponentProps<any>> | StatelessCompo...' is not assignable to type 'In trinsicAttributes & IntrinsicClassAttributes<Route<T>> & Readonly<{ children?: ReactNode; }> & ...'. Type '{ path: string; key: string; component: ComponentClass<RouteComponentProps<any>> | StatelessCompo...' is not assignable to type 'Readonly<T>'
这种情况应该typescript版本过低造成的 尝试使用typescript@2.5.3 问题解决