Created
March 2, 2018 16:22
-
-
Save bruceharris/a14fe088e386ce79bf6c52dde4ee0fb8 to your computer and use it in GitHub Desktop.
React Unit Testing Example 10
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() { | |
if (this.props.isLoading) { | |
if (!this.state.isPastDelay) { | |
return null; | |
} | |
return <div>loading...</div>; | |
} | |
return this.props.children; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment