@@ -197,6 +197,7 @@ function noopOnRecoverableError() {
197
197
// legacy API.
198
198
}
199
199
200
+
200
201
function legacyCreateRootFromDOMContainer (
201
202
container : Container ,
202
203
initialChildren : ReactNodeList ,
@@ -338,14 +339,14 @@ export function render(
338
339
if ( disableLegacyMode ) {
339
340
if ( __DEV__ ) {
340
341
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.' ,
342
343
) ;
343
344
}
344
345
throw new Error ( 'ReactDOM: Unsupported Legacy Mode API.' ) ;
345
346
}
346
347
if ( __DEV__ ) {
347
348
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 ' +
349
350
'instead. Until you switch to the new API, your app will behave as ' +
350
351
"if it's running React 17. Learn " +
351
352
'more: https://react.dev/link/switch-to-createroot' ,
@@ -386,15 +387,15 @@ export function unstable_renderSubtreeIntoContainer(
386
387
if ( disableLegacyMode ) {
387
388
if ( __DEV__ ) {
388
389
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.' ,
390
391
) ;
391
392
}
392
393
throw new Error ( 'ReactDOM: Unsupported Legacy Mode API.' ) ;
393
394
}
394
395
if ( __DEV__ ) {
395
396
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 ' +
398
399
"the createRoot API, your app will behave as if it's running React " +
399
400
'17. Learn more: https://react.dev/link/switch-to-createroot' ,
400
401
) ;
0 commit comments