Method | Side effects1 | State updates2 | Example uses |
---|---|---|---|
Mounting | |||
componentWillMount |
✓ | Constructor equivalent for createClass |
|
render |
Create and return element(s) | ||
componentDidMount |
✓ | ✓ | DOM manipulations, network requests, etc. |
Updating | |||
componentWillReceiveProps |
✓ | Update state based on changed props |
- GitHub Staff
- https://gwwar.com/
- @gwwar
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
# create a remote branch | |
git branch branchname | |
git checkout branchname | |
git push -u origin branchname | |
#add a tag | |
git tag -a tagname -m "your tag message" | |
git push origin tagname | |
# deleting a tag |
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
/** | |
* @author Kerry Liu | |
* WTFPL | |
**/ | |
;(function(){ | |
//test for ie: turn on conditional comments | |
var jscript/*@cc_on=@_jscript_version@*/; | |
var styleProp = (jscript) ? "display" : "pointerEvents"; | |
var KoreSampl = function() {}; |