From 81fb92a4aae2167fca217a92c5070ead498360ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Thu, 26 Dec 2024 19:43:50 +0100 Subject: [PATCH] react 19 --- test/util/render.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/util/render.jsx b/test/util/render.jsx index c1d9b3f..c56bf06 100644 --- a/test/util/render.jsx +++ b/test/util/render.jsx @@ -46,7 +46,7 @@ async function render(initialProps) { const div = env.document.createElement('div'); let root; - if (ReactDOM.version.startsWith('18')) { + if (ReactDOM.version.startsWith('18') || ReactDOM.version.startsWith('19')) { const { createRoot } = await import('react-dom/client'); root = createRoot(div); } else {