Add displayName for DOM Components

This commit is contained in:
Tim Yung authored and Paul O’Shannessy committed 2013-10-09 11:28:12 -07:00
1 parent c99d6a8013
commit d652dd928a
1 file changed
+1
+1
View File
@@ -43,6 +43,7 @@ function createDOMComponentClass(tag, omitClose) {
var Constructor = function() {};
Constructor.prototype = new ReactDOMComponent(tag, omitClose);
Constructor.prototype.constructor = Constructor;
Constructor.displayName = tag;
var ConvenienceConstructor = function(props, children) {
var instance = new Constructor();