We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d142b8c commit 358e960Copy full SHA for 358e960
packages/react-dom/src/__tests__/ReactDOMRoot-test.js
@@ -47,6 +47,7 @@ describe('ReactDOMRoot', () => {
47
expect(container.textContent).toEqual('Hi');
48
});
49
50
+ // @gate !www
51
it('warns if you import createRoot from react-dom', async () => {
52
expect(() => ReactDOM.createRoot(container)).toErrorDev(
53
'You are importing createRoot from "react-dom" which is not supported. ' +
@@ -57,6 +58,7 @@ describe('ReactDOMRoot', () => {
57
58
);
59
60
61
62
it('warns if you import hydrateRoot from react-dom', async () => {
63
expect(() => ReactDOM.hydrateRoot(container, null)).toErrorDev(
64
'You are importing hydrateRoot from "react-dom" which is not supported. ' +
0 commit comments