From 648da9b8d6e775c89f8594e5a4ab9e22a839bc49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Fri, 26 Apr 2024 08:50:57 +0200 Subject: [PATCH] Allow deprecated react render calls --- example/app.js | 1 + test/util/render.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/example/app.js b/example/app.js index 095898f9..0429d91d 100644 --- a/example/app.js +++ b/example/app.js @@ -128,4 +128,5 @@ function App() { ); } +// eslint-disable-next-line react/no-deprecated ReactDOM.render(, document.getElementById('example')); diff --git a/test/util/render.js b/test/util/render.js index ea48ee4b..a8b81371 100644 --- a/test/util/render.js +++ b/test/util/render.js @@ -36,6 +36,7 @@ const render = (initialProps) => { const div = env.document.createElement('div'); const container = new Promise((resolve) => { + // eslint-disable-next-line react/no-deprecated ReactDOM.render(, div); }); @@ -48,6 +49,7 @@ const render = (initialProps) => { } function unmount() { + // eslint-disable-next-line react/no-deprecated ReactDOM.unmountComponentAtNode(div); }