Created
October 29, 2021 13:48
-
-
Save kmagiera/fb4cbee62b3b38714d8a9697c922ecfd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Freeze } from 'react-freeze'; | |
function SomeComponent({ shouldSuspendRendering }) { | |
return ( | |
<Freeze freeze={shouldSuspendRendering}> | |
<MyOtherComponent /> | |
</Freeze> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment