Created
December 2, 2015 05:34
-
-
Save ericelliott/6062775442c880798f94 to your computer and use it in GitHub Desktop.
Pure Component with propTypes
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
export default React => { | |
const hello = ({ helloClass }) => { | |
return <p className={ helloClass }>Hello, World!</p>; | |
}; | |
hello.propTypes = { | |
helloClass: React.PropTypes.string.isRequired | |
}; | |
return hello; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment