Forked from randylien/react-component-template.jsx.js
Created
November 18, 2015 23:11
-
-
Save davidlivingrooms/7b11e9b3ee99d45f5695 to your computer and use it in GitHub Desktop.
React Life Cycle Template
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
'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