Created
November 14, 2018 03:07
-
-
Save hpjaj/671c00296f2cfb66ec873e8348e2d19c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Hello = props => ( | |
| <div>Hello {props.name}!</div> | |
| ) | |
| Hello.defaultProps = { | |
| name: 'David' | |
| } | |
| Hello.propTypes = { | |
| name: PropTypes.string | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment