I can't figure out why PrivateRoute is a .jsx file, not a .tsx file.
I tried to change the filetype to .tsx, but when I do I get an error:
From the statement
const PrivateRoute = ({ component: RouteComponent, ...rest}) => { //....
Binding element 'RouteComponent' implicitly has an 'any' type. TS7031
I am totally at a loss for how to fix this though :( Any thoughts? Is there a particular reason things are set this way?
I can't figure out why PrivateRoute is a
.jsxfile, not a.tsxfile.I tried to change the filetype to .tsx, but when I do I get an error:
From the statement
I am totally at a loss for how to fix this though :( Any thoughts? Is there a particular reason things are set this way?