Skip to content

Instantly share code, notes, and snippets.

@StevenJL
Last active October 1, 2018 03:15
Show Gist options
  • Save StevenJL/75def0174efded790e42a048873df918 to your computer and use it in GitHub Desktop.
Save StevenJL/75def0174efded790e42a048873df918 to your computer and use it in GitHub Desktop.
import PropTypes from 'prop-types'
Widget.propTypes = {
headerText: PropTypes.string.isRequired,
widgetCount: PropTypes.number.isRequired,
isFetchingData: PropTypes.bool.isRequired,
handlerFunction: PropTypes.func.isRequired,
createdAt: PropTypes.instanceOf(Date).isRequired,
optionalText: PropTypes.string
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment