React lets you build user interfaces out of individual pieces called components. It powers everything from small widgets to entire web and native applications.
npm install react react-domPropTypes and defaultProps removed from function components
Both were deprecated since React 18.3 and are no longer supported on function components - use TypeScript or a runtime validation library instead.
String refs fully removed
Use callback refs or `useRef` - the legacy string ref API (`ref="myRef"`) no longer works anywhere in the tree.
React 19 introduced Actions, the `use()` hook, and a built-in Compiler that automatically memoizes components - reducing the amount of manual `useMemo`/`useCallback` most apps needed. This release line continues refining Server Components support and hydration diagnostics.