Created
November 4, 2019 18:34
-
-
Save andyrichardson/fbae533080c168d9e20647a0f7f697b6 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
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