Skip to content

Commit

Permalink
Allow deprecated react render calls
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Apr 26, 2024
1 parent 51203e9 commit 648da9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,5 @@ function App() {
);
}

// eslint-disable-next-line react/no-deprecated
ReactDOM.render(<App />, document.getElementById('example'));
2 changes: 2 additions & 0 deletions test/util/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(<Container {...initialProps} ref={resolve} />, div);
});

Expand All @@ -48,6 +49,7 @@ const render = (initialProps) => {
}

function unmount() {
// eslint-disable-next-line react/no-deprecated
ReactDOM.unmountComponentAtNode(div);
}

Expand Down

0 comments on commit 648da9b

Please sign in to comment.