Route.component does not have any construct or call signatures – React Router with TypeScript

The solution for “Route.component does not have any construct or call signatures – React Router with TypeScript” can be found here. The following code will assist you in solving the problem.

interface IRoute {
key ? : number
path: string
component: React.ComponentType // HERE
exact: boolean
}

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in