Last active
March 10, 2016 16:17
-
-
Save robinvdvleuten/8afb23e2ec76709fffec to your computer and use it in GitHub Desktop.
HelloWorld.jsx
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, { Component, PropTypes } from 'react'; | |
class HelloWorld extends Component { | |
render() { | |
return (<div>Hello, {this.props.name}!</div>); | |
} | |
} | |
HelloWorld.propTypes = { | |
name: PropTypes.string.isRequired, | |
}; | |
export default HelloWorld; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment