mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
Update error messages (#28652)
## Overview The error messages that say: > ReactDOM.hydrate is no longer supported in React 18 Don't make sense in the React 19 release. Instead, they should say: > ReactDOM.hydrate was removed in React 19. For legacy mode, they should say: > ReactDOM.hydrate has not been supported since React 18.
This commit is contained in:
@@ -2159,7 +2159,7 @@ describe('InspectedElement', () => {
|
||||
const container = document.createElement('div');
|
||||
container.innerHTML = '<div></div>';
|
||||
withErrorsOrWarningsIgnored(
|
||||
['ReactDOM.hydrate is no longer supported in React 18'],
|
||||
['ReactDOM.hydrate has not been supported since React 18'],
|
||||
() => {
|
||||
ReactDOM.hydrate(<Example />, container);
|
||||
},
|
||||
|
||||
@@ -151,7 +151,7 @@ export function getLegacyRenderImplementation(): RenderImplementation {
|
||||
|
||||
function render(elements) {
|
||||
withErrorsOrWarningsIgnored(
|
||||
['ReactDOM.render is no longer supported in React 18'],
|
||||
['ReactDOM.render has not been supported since React 18'],
|
||||
() => {
|
||||
ReactDOM.render(elements, container);
|
||||
},
|
||||
@@ -340,7 +340,7 @@ export function legacyRender(elements, container) {
|
||||
|
||||
const ReactDOM = require('react-dom');
|
||||
withErrorsOrWarningsIgnored(
|
||||
['ReactDOM.render is no longer supported in React 18'],
|
||||
['ReactDOM.render has not been supported since React 18'],
|
||||
() => {
|
||||
ReactDOM.render(elements, container);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user