Skip to content

Instantly share code, notes, and snippets.

@bruceharris
Last active March 2, 2018 15:51
Show Gist options
  • Save bruceharris/dd033c7aa28b3da0a07ec162cf8f3f68 to your computer and use it in GitHub Desktop.
Save bruceharris/dd033c7aa28b3da0a07ec162cf8f3f68 to your computer and use it in GitHub Desktop.
React Unit Testing Example 1
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