Skip to content

Instantly share code, notes, and snippets.

@freewayz
Last active January 26, 2016 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freewayz/0b9128a9025e38c76bd3 to your computer and use it in GitHub Desktop.
Save freewayz/0b9128a9025e38c76bd3 to your computer and use it in GitHub Desktop.
React ES6 component creation
class App extends React.Component {
static propTypes = {
params: PropTypes.object.isRequired,
};
state = {
....
};
componentWillMount() {
}
componentWillUpdate(nextProps, nextState) {
}
componentWillReceiveProps(nextProps) {
}
componentDidMount() {
.....
}
render (){
return (....)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment