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