Skip to content

Remove PropTypes #271

@wkeese

Description

@wkeese

I suggest you stop using PropTypes, because it was deprecated eight years ago and doesn't even work anymore in React 19. (And your template uses React 19.).

See https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-proptypes-and-defaultprops for details.

Like that link says, I also recommend using Typescript to do type checking.

But regardless, the PropTypes declarations just bloat the code without providing any benefit, so you should remove them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions