Skip to content

Instantly share code, notes, and snippets.

@kmagiera
Created October 29, 2021 12:52
Show Gist options
  • Save kmagiera/4383c3fcf063b24aa4111929aff0cf70 to your computer and use it in GitHub Desktop.
Save kmagiera/4383c3fcf063b24aa4111929aff0cf70 to your computer and use it in GitHub Desktop.
function SomeComponent({ shouldSuspendeRendering }) {
return (
<Freeze freeze={shouldSuspendeRendering}>
<MyOtherComponent />
</Freeze>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment