Last active
November 18, 2015 23:11
-
-
Save randylien/dc87ac72267f97220346 to your computer and use it in GitHub Desktop.
React Life Cycle Template
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
'use strict'; | |
var React = require('react'); | |
var ReactComponentName = React.createClass({ | |
getDefaultProps: function() { | |
return { | |
}; | |
}, | |
getInitialState: function() { | |
return { | |
}; | |
}, | |
componentWillMount: function() { | |
}, | |
render: function() { | |
return ( | |
<div /> | |
); | |
}, | |
componentDidMount: function() { | |
}, | |
componentWillReceiveProps: function(nextProps) { | |
}, | |
shouldComponentUpdate: function(nextProps, nextState) { | |
}, | |
componentWillUpdate: function(nextProps, nextState) { | |
}, | |
componentDidUpdate: function(prevProps, prevState) { | |
} | |
}); | |
module.exports = ReactComponentName; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment