Skip to content

Commit c8260bd

Browse files
docs: fix react-test-renderer/shallow typo and wording in React 19 Upgrade Guide for clarity
- `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"
1 parent 46a54e0 commit c8260bd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/content/blog/2024/04/25/react-19-upgrade-guide.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ const button = <button />;
334334

335335
#### Removed: `react-test-renderer/shallow` {/*removed-react-test-renderer-shallow*/}
336336

337-
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:
337+
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:
338338

339339
```bash
340340
npm install react-shallow-renderer --save-dev
@@ -579,7 +579,7 @@ In the future we will more aggressively block accessing internals from React to
579579

580580
### Removed deprecated TypeScript types {/*removed-deprecated-typescript-types*/}
581581

582-
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.
582+
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.
583583

584584
<Note>
585585
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
720720
- useReducer<React.Reducer<State, Action>>((state, action) => state)
721721
+ useReducer((state: State, action: Action) => state)
722722
```
723-
This is also what you'd also have to do if you move the reducer outside of the `useReducer` call:
723+
This is also what you'd have to do if you move the reducer outside of the `useReducer` call:
724724

725725
```ts
726726
const reducer = (state: State, action: Action) => state;

0 commit comments

Comments
 (0)