Created
March 15, 2017 20:54
-
-
Save geetotes/15d85871fafcd78bec225c05554b6557 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 NeatoComponent extends React.Component { | |
constructor() { | |
super(); | |
this.state = { | |
foo: this.props.foo, | |
bar: this.props.bar | |
} | |
} | |
render() { | |
return (<p> Foo bar: {this.state.foo} {this.state.bar}</p>); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment