Skip to content

Instantly share code, notes, and snippets.

@bruceharris
Created March 2, 2018 15:49
Show Gist options
  • Save bruceharris/47d299373c953a2fe9ba36361b59e65b to your computer and use it in GitHub Desktop.
Save bruceharris/47d299373c953a2fe9ba36361b59e65b to your computer and use it in GitHub Desktop.
React Unit Testing Example 3
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