Skip to content

Instantly share code, notes, and snippets.

@kmagiera
Created October 29, 2021 13:48
Show Gist options
  • Save kmagiera/fb4cbee62b3b38714d8a9697c922ecfd to your computer and use it in GitHub Desktop.
Save kmagiera/fb4cbee62b3b38714d8a9697c922ecfd to your computer and use it in GitHub Desktop.
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