Last active
January 26, 2016 12:02
-
-
Save freewayz/0b9128a9025e38c76bd3 to your computer and use it in GitHub Desktop.
React ES6 component creation
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
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