Last active
August 11, 2016 02:58
-
-
Save samcorcos/340a88caaad70bc973bd5f18adbbe8c4 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 { | |
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