curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

add note that asks to use React version < 19 for type checking

Open Punith1117 opened this issue 7 months ago • 1 comments

Because

defaultProps and PropTypes are deprecated from React version 19.

This PR

  • The note asks the readers to use React version lesser than 19 to make the type checking with PropTypes and defaultProps compatible.
  • The note also states the changes to be made in package.json file to install React version < 19.

Issue

Closes #29510

Pull Request Requirements

  • [x] I have thoroughly read and understand The Odin Project curriculum contributing guide
  • [x] The title of this PR follows the location of change: brief description of change format, e.g. Intro to HTML and CSS lesson: Fix link text
  • [x] The Because section summarizes the reason for this PR
  • [x] The This PR section has a bullet point list describing the changes in this PR
  • [x] If this PR addresses an open issue, it is linked in the Issue section
  • [x] If any lesson files are included in this PR, they have been previewed with the Markdown preview tool to ensure it is formatted correctly
  • [x] If any lesson files are included in this PR, they follow the Layout Style Guide

Punith1117 avatar May 18 '25 08:05 Punith1117

@MaoShizhong Thank you for suggesting the changes to be made. That makes it more clear and simpler. I will commit and push the changes soon.

Punith1117 avatar May 19 '25 13:05 Punith1117