I changed one line in package.json , from React 18 to React 19. The app started. No red errors. Then I noticed every "Save" button on the page was blank .
The culprit was this:
function Button ( { label } ) { return < button > { label } </ button > ; } Button . defaultProps = { label : "Save" } ; // ignored in React 19
Enter fullscreen mode
Exit fullscreen mode
React 19 removes a few old APIs that had been deprecated for years, and adds new ones that make everyday code shorter. Most apps need small fixes, not a rewrite. Here's what actually matters, and the two changes worth learning properly.
Will this affect me? A 30-second checklist
Search your code for these.β¦