Created
July 19, 2017 02:57
-
-
Save jbaxleyiii/6e8a333c53dca89c49d31c49ebeac644 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export default withCharacter(({ loading, hero, error }) => { | |
// Operator '>' cannot be applied to types 'boolean' and 'number'. | |
if (loading > 1) return <div>Loading</div>; | |
if (error) return <h1>error.name</h1>; | |
return ...; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment