mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Add displayName for DOM Components
This commit is contained in:
1 parent
c99d6a8013
commit
d652dd928a
1 file changed
+1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user