Skip to content

Why is PrivateRoute .jsx not .tsx? #3

Description

@r-i-c-h

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions