When you declare components as ES6 classes, they do not have displayName inferred, at least not with Babel. However, they have a name attribute, as all classes do.
See this Babel issue for a discussion - one could augment Babel to generate displayName on a per-project basis, but I think the better forward-looking solution for react-transmit is to support name.
When you declare components as ES6 classes, they do not have
displayName
inferred, at least not with Babel. However, they have aname
attribute, as all classes do.See this Babel issue for a discussion - one could augment Babel to generate
displayName
on a per-project basis, but I think the better forward-looking solution for react-transmit is to supportname
.