babel-plugin-transform-create-class-display-name
v0.2.0
Published
Avoids `Unknown` react components in devtools
Readme
babel-transform-create-class-display-name
It would appear that one of the differences between React.createClass and create-react-class is that the latter will no longer implictly add a displayName to the Component.
You might see <Unknown> in the react-devtools as a consequence.
This babel plugin will implicitly transform
const Foo = reactCreateClass({
})into
const Foo = reactCreateClass({
displayName : 'Foo'
})