react/fixtures/dom
Andrew Clark aecb3b6d11
Deprecate ReactDOM.render and ReactDOM.hydrate (#21652)
* 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: https://github.com/reactjs/reactjs.org/pull/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.
2021-06-09 13:46:55 -07:00
..
public using the wrong renderer's act() should warn (#15756) 2019-05-29 22:56:04 +01:00
src Deprecate ReactDOM.render and ReactDOM.hydrate (#21652) 2021-06-09 13:46:55 -07:00
.gitignore act() - s / flushPassiveEffects / Scheduler.unstable_flushWithoutYielding (#15591) 2019-05-16 17:12:36 +01:00
package.json Update to Jest 25 (#18480) 2020-04-03 16:37:36 +01:00
README.md reference yarn instead of npm in dom fixtures README (#11374) 2017-10-26 17:51:58 +01:00
yarn.lock Always rethrow original error when we replay errors (#20425) 2020-12-10 05:50:41 -08:00

DOM Fixtures

A set of DOM test cases for quickly identifying browser issues.

Setup

To reference a local build of React, first run yarn build at the root of the React project. Then:

cd fixtures/dom
yarn
yarn start

The start command runs a script that copies over the local build of react into the public directory.