Skip to content

Instantly share code, notes, and snippets.

@samcorcos
Last active August 11, 2016 02:58
Show Gist options
  • Save samcorcos/340a88caaad70bc973bd5f18adbbe8c4 to your computer and use it in GitHub Desktop.
Save samcorcos/340a88caaad70bc973bd5f18adbbe8c4 to your computer and use it in GitHub Desktop.
class App extends React.Component {
constructor() {
super()
this.prototypeProperty = {
baz: "qux"
}
}
static staticProperty = {
foo: "bar"
};
render() {
return (<div>My App</div>)
}
}
const proto = new App();
const proto2 = proto.prototypeProperty // => { baz: "qux" }
const stat = App.staticProperty // => { foo: "bar" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment