Skip to content
4 changes: 2 additions & 2 deletions src/content/blog/2024/04/25/react-19-upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ For a list of all available codemods, see the [`react-codemod` repo](https://git

In previous versions of React, errors thrown during render were caught and rethrown. In DEV, we would also log to `console.error`, resulting in duplicate error logs.

In React 19, we've [improved how errors are handled](/blog/2024/04/25/react-19#error-handling) to reduce duplication by not re-throwing:
In React 19, we've [improved how errors are handled](/blog/2024/12/05/react-19#error-handling) to reduce duplication by not re-throwing:

- **Uncaught Errors**: Errors that are not caught by an Error Boundary are reported to `window.reportError`.
- **Caught Errors**: Errors that are caught by an Error Boundary are reported to `console.error`.
Expand Down Expand Up @@ -499,7 +499,7 @@ function AutoselectingInput() {

### Deprecated: `element.ref` {/*deprecated-element-ref*/}

React 19 supports [`ref` as a prop](/blog/2024/04/25/react-19#ref-as-a-prop), so we're deprecating the `element.ref` in place of `element.props.ref`.
React 19 supports [`ref` as a prop](/blog/2024/12/05/react-19#ref-as-a-prop), so we're deprecating the `element.ref` in place of `element.props.ref`.

Accessing `element.ref` will warn:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1245,8 +1245,8 @@ root.render(
```json package.json hidden
{
"dependencies": {
"react": "canary",
"react-dom": "canary",
"react": "19.3.0-canary-eb8feb71-20260814",
"react-dom": "19.3.0-canary-eb8feb71-20260814",
"react-scripts": "latest"
},
"scripts": {
Expand Down Expand Up @@ -2442,8 +2442,8 @@ root.render(
```json package.json hidden
{
"dependencies": {
"react": "canary",
"react-dom": "canary",
"react": "19.3.0-canary-eb8feb71-20260814",
"react-dom": "19.3.0-canary-eb8feb71-20260814",
"react-scripts": "latest"
},
"scripts": {
Expand Down Expand Up @@ -3670,8 +3670,8 @@ root.render(
```json package.json hidden
{
"dependencies": {
"react": "canary",
"react-dom": "canary",
"react": "19.3.0-canary-eb8feb71-20260814",
"react-dom": "19.3.0-canary-eb8feb71-20260814",
"react-scripts": "latest"
},
"scripts": {
Expand Down Expand Up @@ -4879,8 +4879,8 @@ root.render(
```json package.json hidden
{
"dependencies": {
"react": "canary",
"react-dom": "canary",
"react": "19.3.0-canary-eb8feb71-20260814",
"react-dom": "19.3.0-canary-eb8feb71-20260814",
"react-scripts": "latest"
},
"scripts": {
Expand Down Expand Up @@ -6195,8 +6195,8 @@ root.render(
```json package.json hidden
{
"dependencies": {
"react": "canary",
"react-dom": "canary",
"react": "19.3.0-canary-eb8feb71-20260814",
"react-dom": "19.3.0-canary-eb8feb71-20260814",
"react-scripts": "latest"
},
"scripts": {
Expand Down Expand Up @@ -7493,8 +7493,8 @@ root.render(
```json package.json hidden
{
"dependencies": {
"react": "canary",
"react-dom": "canary",
"react": "19.3.0-canary-eb8feb71-20260814",
"react-dom": "19.3.0-canary-eb8feb71-20260814",
"react-scripts": "latest"
},
"scripts": {
Expand Down Expand Up @@ -8814,8 +8814,8 @@ root.render(
```json package.json hidden
{
"dependencies": {
"react": "canary",
"react-dom": "canary",
"react": "19.3.0-canary-eb8feb71-20260814",
"react-dom": "19.3.0-canary-eb8feb71-20260814",
"react-scripts": "latest"
},
"scripts": {
Expand Down Expand Up @@ -10155,8 +10155,8 @@ root.render(
```json package.json hidden
{
"dependencies": {
"react": "canary",
"react-dom": "canary",
"react": "19.3.0-canary-eb8feb71-20260814",
"react-dom": "19.3.0-canary-eb8feb71-20260814",
"react-scripts": "latest"
},
"scripts": {
Expand Down Expand Up @@ -11441,8 +11441,8 @@ root.render(
```json package.json hidden
{
"dependencies": {
"react": "canary",
"react-dom": "canary",
"react": "19.3.0-canary-eb8feb71-20260814",
"react-dom": "19.3.0-canary-eb8feb71-20260814",
"react-scripts": "latest"
},
"scripts": {
Expand Down Expand Up @@ -12840,8 +12840,8 @@ root.render(
```json package.json hidden
{
"dependencies": {
"react": "canary",
"react-dom": "canary",
"react": "19.3.0-canary-eb8feb71-20260814",
"react-dom": "19.3.0-canary-eb8feb71-20260814",
"react-scripts": "latest"
},
"scripts": {
Expand Down Expand Up @@ -14178,8 +14178,8 @@ root.render(
```json package.json hidden
{
"dependencies": {
"react": "canary",
"react-dom": "canary",
"react": "19.3.0-canary-eb8feb71-20260814",
"react-dom": "19.3.0-canary-eb8feb71-20260814",
"react-scripts": "latest"
},
"scripts": {
Expand Down
Loading
Loading