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 have encountered this a couple of times. Try these:
PrivateRoute
React.FC
React.ElementType
The ultimate truth about React types comes from the docs
Edit: React.ReactType (deprecated) -> React.ElementType