Last active
September 15, 2016 09:23
-
-
Save ChuckJHardy/96a556e3e1e2d4d92701 to your computer and use it in GitHub Desktop.
ReactJS Example Structure
This file contains 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
React.createClass({ | |
displayName: 'Name', | |
propTypes: {}, | |
mixins: [], | |
getInitialState: function() { | |
return {}; | |
}, | |
getDefaultProps: function() { | |
return {}; | |
}, | |
componentWillMount: function() {}, | |
componentDiDMount: function() {}, | |
componentWillReceiveProps: function() {}, | |
shouldComponentUpdate: function() {}, | |
componentWillUpdate: function() {}, | |
componentDidUpdate: function() {}, | |
componentWillUnmount: function() {}, | |
// Public | |
parseData: function() { | |
this._parseData(); | |
}, | |
// Private | |
_parseData: function() {}, | |
_onSelect: function() {}, | |
render: function() {} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment