Created
August 10, 2016 10:42
-
-
Save samcorcos/ef550c4593af3c69d68b6b2ee65b33fb 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
class App extends React.Component { | |
static propTypes { | |
title: React.PropTypes.string.isRequired | |
} | |
render() { | |
return (<div>{ this.props.title }</div>) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Small typo, on line 2, should be:
static propTypes = {