Created
January 3, 2018 12:32
-
-
Save fernandocamargo/ecf5900651fcdda398a6dfc62e28699d to your computer and use it in GitHub Desktop.
This file contains 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 PropTypes from 'prop-types'; | |
export const component = ({ title, description }) => ( | |
<dl> | |
<dt>{title}</dt> | |
<dd>{description}</dd> | |
</dl> | |
); | |
export default Object.assign(component, { | |
displayName: 'Whatever component', | |
propTypes: { | |
title: PropTypes.string.isRequired, | |
description: PropTypes.string | |
}, | |
defaultProps: { | |
description: 'No description provided' | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment