Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

craigdallimore/babel-plugin-transform-create-class-display-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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'

})

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published