diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index efcea246..63d0d2cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: name: Tests strategy: matrix: - node-version: [14.x, 16.x, 17.x] + node-version: [16.x, 18.x, 20.x] react-version: [17.x, 18.x] include: - node-version: 12.x 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); }