Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add /link/switch-to-createroot #3730

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

acdlite
Copy link
Member

@acdlite acdlite commented Jun 9, 2021

Redirects to the working group document that explains how to upgrade from ReactDOM.render to ReactDOM.createRoot.

reactwg/react-18#5

Redirects to the working group document that explains how to upgrade
from ReactDOM.render to ReactDOM.createRoot.

reactwg/react-18#5
@reactjs-bot
Copy link

✔️ Deploy Preview for reactjs ready!
Built without sensitive environment variables

🔨 Explore the source changes: 54c1145

🔍 Inspect the deploy log: https://app.netlify.com/sites/reactjs/deploys/60c10ab88a89e20008cf289e

😎 Browse the preview: https://deploy-preview-3730--reactjs.netlify.app

acdlite added a commit to acdlite/react that referenced this pull request Jun 9, 2021
These are no longer supported in React 18. They are replaced by the
`createRoot` API.

The warning includes a link to documentation of the new API. Currently
it redirects to the corresponding working group post. Here's the PR to
set up the redirect: reactjs/react.dev#3730

Many of our tests still use ReactDOM.render. We will need to gradually
migrate them over to createRoot.

In the meantime, I added the warnings to our internal warning filter.
@acdlite acdlite merged commit 589c033 into reactjs:master Jun 9, 2021
acdlite added a commit to acdlite/react that referenced this pull request Jun 9, 2021
These are no longer supported in React 18. They are replaced by the
`createRoot` API.

The warning includes a link to documentation of the new API. Currently
it redirects to the corresponding working group post. Here's the PR to
set up the redirect: reactjs/react.dev#3730

Many of our tests still use ReactDOM.render. We will need to gradually
migrate them over to createRoot.

In the meantime, I added the warnings to our internal warning filter.
acdlite added a commit to acdlite/react that referenced this pull request Jun 9, 2021
These are no longer supported in React 18. They are replaced by the
`createRoot` API.

The warning includes a link to documentation of the new API. Currently
it redirects to the corresponding working group post. Here's the PR to
set up the redirect: reactjs/react.dev#3730

Many of our tests still use ReactDOM.render. We will need to gradually
migrate them over to createRoot.

In the meantime, I added the warnings to our internal warning filter.
acdlite added a commit to acdlite/react that referenced this pull request Jun 9, 2021
These are no longer supported in React 18. They are replaced by the
`createRoot` API.

The warning includes a link to documentation of the new API. Currently
it redirects to the corresponding working group post. Here's the PR to
set up the redirect: reactjs/react.dev#3730

Many of our tests still use ReactDOM.render. We will need to gradually
migrate them over to createRoot.

In the meantime, I added the warnings to our internal warning filter.
acdlite added a commit to facebook/react that referenced this pull request Jun 9, 2021
* Use existing test warning filter for server tests

We have a warning filter for our internal tests to ignore warnings
that are too noisy or that we haven't removed from our test suite yet:
shouldIgnoreConsoleError.

Many of our server rendering tests don't use this filter, though,
because it has its own special of asserting warnings.

So I added the warning filter to the server tests, too.

* Deprecate ReactDOM.render and ReactDOM.hydrate

These are no longer supported in React 18. They are replaced by the
`createRoot` API.

The warning includes a link to documentation of the new API. Currently
it redirects to the corresponding working group post. Here's the PR to
set up the redirect: reactjs/react.dev#3730

Many of our tests still use ReactDOM.render. We will need to gradually
migrate them over to createRoot.

In the meantime, I added the warnings to our internal warning filter.
koto pushed a commit to koto/react that referenced this pull request Jun 15, 2021
* Use existing test warning filter for server tests

We have a warning filter for our internal tests to ignore warnings
that are too noisy or that we haven't removed from our test suite yet:
shouldIgnoreConsoleError.

Many of our server rendering tests don't use this filter, though,
because it has its own special of asserting warnings.

So I added the warning filter to the server tests, too.

* Deprecate ReactDOM.render and ReactDOM.hydrate

These are no longer supported in React 18. They are replaced by the
`createRoot` API.

The warning includes a link to documentation of the new API. Currently
it redirects to the corresponding working group post. Here's the PR to
set up the redirect: reactjs/react.dev#3730

Many of our tests still use ReactDOM.render. We will need to gradually
migrate them over to createRoot.

In the meantime, I added the warnings to our internal warning filter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants