I have upgraded react and react-dom (and also @type/react and @types/react-dom) to the latest version to use react hooks. But now I am getting this type error:
Argument of type typeof is not assignable to parameter of type 'ComponentType< Props & RouteComponentProps<{}, StaticContext, any>>
interface LoginProps {}
class Login extends React.PureComponent<LoginProps & RouteComponentProps, {}> {
}
export default withRouter(Login);
I suspect the type definitions to be the issue, but I cannot find out what.