Skip to content

Instantly share code, notes, and snippets.

@robinvdvleuten
Last active March 10, 2016 16:17
Show Gist options
  • Save robinvdvleuten/8afb23e2ec76709fffec to your computer and use it in GitHub Desktop.
Save robinvdvleuten/8afb23e2ec76709fffec to your computer and use it in GitHub Desktop.
HelloWorld.jsx
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