From c8260bd5fae9de89cd12542ae3928c3b97844789 Mon Sep 17 00:00:00 2001
From: JeevaRamanathan <64531160+JeevaRamanathan@users.noreply.github.com>
Date: Mon, 23 Nov 2026 15:17:54 -0600
Subject: [PATCH] docs: fix react-test-renderer/shallow typo and wording in
React 19 Upgrade Guide for clarity
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- `react-test-render/shallow` → `react-test-renderer/shallow` (the package name was missing an "er")
- "Some of the removed have types been moved" → "Some of the removed types have been moved"
- "what you'd also have to do" → removed the duplicated "also"
---
src/content/blog/2024/04/25/react-19-upgrade-guide.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/content/blog/2024/04/25/react-19-upgrade-guide.md b/src/content/blog/2024/04/25/react-19-upgrade-guide.md
index 99d8a1874f5..f380c14506f 100644
--- a/src/content/blog/2024/04/25/react-19-upgrade-guide.md
+++ b/src/content/blog/2024/04/25/react-19-upgrade-guide.md
@@ -334,7 +334,7 @@ const button = ;
#### Removed: `react-test-renderer/shallow` {/*removed-react-test-renderer-shallow*/}
-In React 18, we updated `react-test-renderer/shallow` to re-export [react-shallow-renderer](https://github.com/enzymejs/react-shallow-renderer). In React 19, we're removing `react-test-render/shallow` to prefer installing the package directly:
+In React 18, we updated `react-test-renderer/shallow` to re-export [react-shallow-renderer](https://github.com/enzymejs/react-shallow-renderer). In React 19, we're removing `react-test-renderer/shallow` to prefer installing the package directly:
```bash
npm install react-shallow-renderer --save-dev
@@ -579,7 +579,7 @@ In the future we will more aggressively block accessing internals from React to
### Removed deprecated TypeScript types {/*removed-deprecated-typescript-types*/}
-We've cleaned up the TypeScript types based on the removed APIs in React 19. Some of the removed have types been moved to more relevant packages, and others are no longer needed to describe React's behavior.
+We've cleaned up the TypeScript types based on the removed APIs in React 19. Some of the removed types have been moved to more relevant packages, and others are no longer needed to describe React's behavior.
We've published [`types-react-codemod`](https://github.com/eps1lon/types-react-codemod/) to migrate most type related breaking changes:
@@ -720,7 +720,7 @@ If you define the reducer inline, we encourage to annotate the function paramete
- useReducer>((state, action) => state)
+ useReducer((state: State, action: Action) => state)
```
-This is also what you'd also have to do if you move the reducer outside of the `useReducer` call:
+This is also what you'd have to do if you move the reducer outside of the `useReducer` call:
```ts
const reducer = (state: State, action: Action) => state;