Last active
March 24, 2018 08:00
-
-
Save hungdev/a6d3cf448fcd26c5c6d1c882c577fcca to your computer and use it in GitHub Desktop.
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
import PropTypes from 'prop-types' | |
const propTypes = { | |
codeLength: PropTypes.number.isRequired | |
} | |
const defaultProps = { | |
codeLength: 5 | |
} | |
InputCode.propTypes = propTypes | |
InputCode.defaultProps = defaultProps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment