Last active
August 1, 2017 04:40
-
-
Save BrianCortes/ecbcbdbefc518f348018f81335e71cf9 to your computer and use it in GitHub Desktop.
defaultProps and propTypes
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
Comment.defaultProps = { | |
valueInput: '' | |
} | |
Comments.propTypes = { | |
addComment: PropTypes.func.isRequired, | |
comments: PropTypes.array.isRequired, | |
changeText: PropTypes.func.isRequired | |
} | |
export default Comments; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment