The current composition logic will always override the displayName prop, even when displayName is undefined and gets set to the default value, 'ReactStamp'. displayName should override only when it has been explicitly defined in the object.
I also changed the default value from 'ReactStamp' to 'Component'.
Do not merge, I need to write tests.
The current composition logic will always override the
displayName
prop, even whendisplayName
is undefined and gets set to the default value, 'ReactStamp'.displayName
should override only when it has been explicitly defined in the object.I also changed the default value from 'ReactStamp' to 'Component'.