Skip to content

Instantly share code, notes, and snippets.

@andyrichardson
Created November 4, 2019 18:34
Show Gist options
  • Save andyrichardson/fbae533080c168d9e20647a0f7f697b6 to your computer and use it in GitHub Desktop.
Save andyrichardson/fbae533080c168d9e20647a0f7f697b6 to your computer and use it in GitHub Desktop.
const MyComponent = ({ loading }) => (
if (loading) {
return <Spinner />;
}
return <MainContent />;
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment