Skip to content

Commit

Permalink
react 19
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Dec 26, 2024
1 parent 4ec7730 commit 81fb92a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/util/render.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 81fb92a

Please sign in to comment.