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.
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
PropTypesdeclarations just bloat the code without providing any benefit, so you should remove them.