Skip to content

Instantly share code, notes, and snippets.

@hafeez-syed
Last active January 22, 2017 09:47
Show Gist options
  • Save hafeez-syed/e23ad8469ad7b95a6e2700230dd8e775 to your computer and use it in GitHub Desktop.
Save hafeez-syed/e23ad8469ad7b95a6e2700230dd8e775 to your computer and use it in GitHub Desktop.
/**
*********************************
*********************************
*********************************
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