Open
Description
Checks
- This is not a duplicate of an existing issue (please have a look through our open issues list to make sure)
- I have thoroughly read and understand The Odin Project Contributing Guide
- Would you like to work on this issue?
Describe your suggestion
Issue details:
- Both PropTypes and defaultProps does not work in functional component
- defaultProps works but PropTypes doesn't in class component
Possible ways to fix this:
- [quickest] Mention this same exact fact in the beginning of the article so that people can be aware of this and most importantly preventing wastage of their time in figuring out why it doesn't work (they neither get an error nor a warning when using it) It could be fixed by installing react versions lesser than 19.
- Remove the whole propTypes and defaultProps concept (this forces the curriculum to teach typescript in detail)
Path
Node / JS
Lesson Url
https://www.theodinproject.com/lessons/node-path-react-new-type-checking-with-proptypes
(Optional) Discord Name
No response
(Optional) Additional Comments
No response