Skip to content

Commit 56874ae

Browse files
committed
Update errors
1 parent 65607a8 commit 56874ae

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/react-dom/src/client/ReactDOMRootFB.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ function noopOnRecoverableError() {
197197
// legacy API.
198198
}
199199

200+
200201
function legacyCreateRootFromDOMContainer(
201202
container: Container,
202203
initialChildren: ReactNodeList,
@@ -338,14 +339,14 @@ export function render(
338339
if (disableLegacyMode) {
339340
if (__DEV__) {
340341
console.error(
341-
'ReactDOM.render is no longer supported in React 18. Use createRoot instead.',
342+
'ReactDOM.render was removed in React 19. Use createRoot instead.',
342343
);
343344
}
344345
throw new Error('ReactDOM: Unsupported Legacy Mode API.');
345346
}
346347
if (__DEV__) {
347348
console.error(
348-
'ReactDOM.render is no longer supported in React 18. Use createRoot ' +
349+
'ReactDOM.render has not been supported since React 18. Use createRoot ' +
349350
'instead. Until you switch to the new API, your app will behave as ' +
350351
"if it's running React 17. Learn " +
351352
'more: https://react.dev/link/switch-to-createroot',
@@ -386,15 +387,15 @@ export function unstable_renderSubtreeIntoContainer(
386387
if (disableLegacyMode) {
387388
if (__DEV__) {
388389
console.error(
389-
'ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead.',
390+
'ReactDOM.unstable_renderSubtreeIntoContainer() was removed in React 19. Consider using a portal instead.',
390391
);
391392
}
392393
throw new Error('ReactDOM: Unsupported Legacy Mode API.');
393394
}
394395
if (__DEV__) {
395396
console.error(
396-
'ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported ' +
397-
'in React 18. Consider using a portal instead. Until you switch to ' +
397+
'ReactDOM.unstable_renderSubtreeIntoContainer() has not been supported ' +
398+
'since React 18. Consider using a portal instead. Until you switch to ' +
398399
"the createRoot API, your app will behave as if it's running React " +
399400
'17. Learn more: https://react.dev/link/switch-to-createroot',
400401
);

0 commit comments

Comments
 (0)