Created
March 2, 2018 15:49
-
-
Save bruceharris/47d299373c953a2fe9ba36361b59e65b to your computer and use it in GitHub Desktop.
React Unit Testing Example 3
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
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
export default class LoadingIndicator extends Component { | |
render() { | |
return this.props.children; | |
} | |
} | |
LoadingIndicator.propTypes = { | |
isLoading: PropTypes.bool.isRequired, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment