v18.3.0
版本发布时间: 2024-04-27 03:48:51
facebook/react最新发布版本:v19.0.0(2024-12-06 05:05:14)
This release is identical to 18.2 but adds warnings for deprecated APIs and other changes that are needed for React 19.
Read the React 19 Upgrade Guide for more info.
React
- Allow writing to
this.refs
to support string ref codemod 909071 - Warn for deprecated
findDOMNode
outside StrictMode c3b283 - Warn for deprecated
test-utils
methods d4ea75 - Warn for deprecated Legacy Context outside StrictMode 415ee0
- Warn for deprecated string refs outside StrictMode #25383
- Warn for deprecated
defaultProps
for function components #25699 - Warn when spreading
key
#25697 - Warn when using
act
fromtest-utils
d4ea75