Last active
January 22, 2017 09:47
-
-
Save hafeez-syed/e23ad8469ad7b95a6e2700230dd8e775 to your computer and use it in GitHub Desktop.
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
/** | |
********************************* | |
********************************* | |
********************************* | |
module exports | |
********************************* | |
********************************* | |
********************************* | |
*/ | |
// short cut | |
modex | |
// script | |
module.exports = mod | |
************************************************************* | |
/** | |
********************************* | |
********************************* | |
********************************* | |
React Class | |
********************************* | |
********************************* | |
********************************* | |
*/ | |
// short cut | |
rrclass | |
// script | |
var Class = React.createClass({ | |
render: renderFunction | |
}); | |
function renderFunction() { | |
return ( | |
<div> | |
</div> | |
); | |
} | |
module.exports = Class | |
************************************************************* | |
/** | |
********************************* | |
********************************* | |
********************************* | |
function declaration | |
********************************* | |
********************************* | |
********************************* | |
*/ | |
// short cut | |
ffd | |
// script | |
function funcName() { | |
} | |
************************************************************* | |
/** | |
********************************* | |
********************************* | |
********************************* | |
function expression | |
********************************* | |
********************************* | |
********************************* | |
*/ | |
// short cut | |
ffe | |
// script | |
var func = function() { | |
} | |
************************************************************* | |
/** | |
********************************* | |
********************************* | |
********************************* | |
immediately invoked function expression | |
********************************* | |
********************************* | |
********************************* | |
*/ | |
// short cut | |
iife | |
// script | |
(function() { | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment