stampit-org / react-stamp

Composables for React.
370 stars 10 forks source link

Correctly set a components display name #19

Closed troutowicz closed 8 years ago

troutowicz commented 8 years ago

Do not merge, I need to write tests.

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'.

troutowicz commented 8 years ago

Ready for review/merge.