Skip to content

Commit

Permalink
jest-react-fela | Fix createRoot support (#898)
Browse files Browse the repository at this point in the history
* Fix createRoot support

* Update lockfile
  • Loading branch information
alizeait authored Apr 7, 2022
1 parent 720e0a7 commit 5e2619c
Show file tree
Hide file tree
Showing 2 changed files with 158 additions and 158 deletions.
4 changes: 2 additions & 2 deletions packages/jest-react-fela/src/createSnapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ try {

function renderComponent(component, node) {
if (createRoot) {
const root = ReactDOMClient.createRoot(component)
root.render(node)
const root = createRoot(node)
root.render(component)
} else {
render(component, node)
}
Expand Down
Loading

1 comment on commit 5e2619c

@vercel
Copy link

@vercel vercel bot commented on 5e2619c Apr 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.