Skip to content

Commit 8b0d18b

Browse files
committed
More sections and TODOs
1 parent b6d8853 commit 8b0d18b

File tree

2 files changed

+27
-23
lines changed

2 files changed

+27
-23
lines changed

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

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,17 @@ const button = createFactory('button');
209209
const button = <button />;
210210
```
211211

212+
### Removing react/test-utils {/*removing-react-test-utils*/}
213+
214+
TODO (mention React.act)
215+
216+
217+
### Removing react-test-renderer {/*removing-react-test-renderer*/}
218+
219+
TODO
220+
221+
222+
212223
## Removing deprecated React DOM APIs {/*removing-deprecated-react-dom-apis*/}
213224

214225

@@ -253,39 +264,43 @@ function AutoselectingInput() {
253264
}
254265
```
255266

256-
## Removing react-test-renderer and test-utils {/*react-test-renderer-and-test-utils*/}
257-
258-
TODO
259-
260267
<Note>
261268

262269
TODO: note about React Native.
263270

264271
</Note>
265272

266-
## Removing UMD builds {/*umd-builds*/}
273+
## Breaking Changes {/*breaking-changes*/}
274+
275+
### Do not re-throw errors {/*do-not-rethrow-errors*/}
276+
277+
TODO
278+
TODO: need expect(act()).toThrow();
279+
280+
### Transitions in popstate are now synchronous. {/*transitions-in-popstate-are-now-synchronous*/}
267281

268282
TODO
269283

284+
### StrictMode improvements {/*strict-mode-improvements*/}
285+
286+
TODO
270287

271288
## New Deprecations {/*new-deprecations*/}
272289

273290
- react: Warn when using defaultProps in functions, memo, lazy, and forwardRef (TODO)
274291
- react: Warn when spreading “key” as part of props in DEV (TODO)
275292

276-
## Other Breaking Changes {/*breaking-changes*/}
293+
## Other Breaking Changes {/*other-breaking-changes*/}
277294

278-
- react-dom: Remove errorInfo.digest with warning (TODO)
295+
- UMD builds have been removed
296+
- react-dom: Remove `errorInfo.digest` with warning (TODO)
279297
- react-dom: Removed unstable_renderSubtreeIntoContainer (TODO)
280298
- react-dom: Warn and don’t set empty string attributes for src/href (TODO: land)
281299
- react-dom: Error and do not allow javascript URLs in src/href (TODO: land)
282300

283-
## Other notable changes {/*other-notable-changes*/}
301+
## Other Notable changes {/*other-notable-changes*/}
284302

285303
#### React {/*other-notable-changes-react*/}
286-
- act moved to top-level React package (TODO)
287-
- unstable_batchedUpdates is a noop (TODO).
288-
- Transitions in popstate are now synchronous.
289304

290305
#### React DOM {/*other-notable-changes-react-dom*/}
291306
- Removed layout effect warning during SSR.

src/content/blog/2024/04/01/react-19.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,20 +1043,9 @@ https://react.dev/link/hydration-mismatch {'\n'}
10431043

10441044
TODO
10451045

1046-
### Hydration support for extensions {/*hydration-support-for-extensions*/}
1047-
1048-
TODO
1049-
1050-
1051-
### TODO {/*todo*/}
1052-
1053-
More improvements?
1054-
- Strict Mode improvements
1055-
- Refs can now return a cleanup function. (TODO: docs)
1056-
10571046

10581047
#### How to Upgrade {/*how-to-upgrade*/}
1059-
See the React 19 Upgrade Guide for step-by-step instructions and a full list of breaking and notable changes.
1048+
See the [React 19 Upgrade Guide](/blog/2024/04/01/react-19-upgrade-guide) for step-by-step instructions and a full list of breaking and notable changes.
10601049

10611050

10621051

0 commit comments

Comments
 (0)