RickWong / react-transmit

Relay-inspired library based on Promises instead of GraphQL.
BSD 3-Clause "New" or "Revised" License
1.32k stars 61 forks source link

Support component names when they are created as ES6 classes #35

Closed leonid-shevtsov closed 9 years ago

leonid-shevtsov commented 9 years ago

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.