Skip to content

Commit

Permalink
Move cloneElement
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah committed Jul 1, 2024
1 parent 0925920 commit 303e01e
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,9 @@ describe('elementAcceptingRef', () => {
function testAct() {
checkPropType(<Component />);
render(
React.cloneElement(
<React.Suspense fallback={<p />}>
<Component />
</React.Suspense>,
{ ref: React.createRef() },
),
<React.Suspense fallback={<p />}>
{React.cloneElement(<Component />, { ref: React.createRef() })}
</React.Suspense>,
);
}

Expand Down

0 comments on commit 303e01e

Please sign in to comment.