Skip to content

Instantly share code, notes, and snippets.

@cjohansen
Created June 10, 2015 08:14
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 cjohansen/a404f815427bd2828aae to your computer and use it in GitHub Desktop.
Save cjohansen/a404f815427bd2828aae to your computer and use it in GitHub Desktop.
function mkElement(tag) {
return function () {
return React.createElement.apply(React, [tag].concat([].slice.call(arguments, 0)));
};
}
var div = mkElement("div");
var h1 = mkElement("h1");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment