Skip to content

Instantly share code, notes, and snippets.

@arbales
Created May 29, 2013 23:20
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 arbales/5674615 to your computer and use it in GitHub Desktop.
Save arbales/5674615 to your computer and use it in GitHub Desktop.
render: function(){
var tm = window.ReactTemplates[this.templateName];
if (typeof tm === 'function') {
return tm.apply(this, arguments);
} else {
// however errors work in React
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment