Created
May 31, 2016 02:53
-
-
Save manavsehgal/0a76abab0bee24e580dab3c5f983c784 to your computer and use it in GitHub Desktop.
Custom Hello stateless component
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 React from 'react'; | |
const Hello = ({ greet, message }) => ( | |
<h3> | |
{greet} {message} | |
</h3> | |
); | |
Hello.propTypes = { | |
greet: React.PropTypes.string, | |
message: React.PropTypes.string | |
}; | |
export default Hello; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment