I\'m trying to pass a variable of type React.Component (or React.FunctionComponent) into a Route, like this:
import React from \'react\'; import { Route } from \
I was able to resolve the error by typing my component as follows:
... export function withApollo (PageComponent: () => JSX.Element) { const WithApollo = (props: T) => { ...