Created
January 16, 2018 09:20
-
-
Save phpsmarter/2463f6831e30e66c40e939ce158b928c to your computer and use it in GitHub Desktop.
Created with Copy to Gist
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
render() { | |
const { loading, data } = props; | |
if (loading) return <Loader />; | |
return <DisplayData data={data} /> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment