Last active
March 2, 2018 15:51
-
-
Save bruceharris/dd033c7aa28b3da0a07ec162cf8f3f68 to your computer and use it in GitHub Desktop.
React Unit Testing Example 1
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 null; | |
} | |
} | |
LoadingIndicator.propTypes = { | |
isLoading: PropTypes.bool.isRequired, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment