We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ec7730 commit 81fb92aCopy full SHA for 81fb92a
test/util/render.jsx
@@ -46,7 +46,7 @@ async function render(initialProps) {
46
47
const div = env.document.createElement('div');
48
let root;
49
- if (ReactDOM.version.startsWith('18')) {
+ if (ReactDOM.version.startsWith('18') || ReactDOM.version.startsWith('19')) {
50
const { createRoot } = await import('react-dom/client');
51
root = createRoot(div);
52
} else {
0 commit comments