Closed havenchyk closed 7 years ago
Added some tests. Since property name
of the constructor is read only, I just did displayName
empty. /cc @kossnocorp
@kossnocorp just a friendly ping :)
Thank you! The update was released as 0.4.0
:
$ npm publish
+ react-guard@0.4.0
awesome!
Here is a method how React understands component's name https://github.com/facebook/react/blob/b3c75d82b2c8862a461b34167bbef37a3eaa5c46/src/classic/element/ReactElementValidator.js#L68
I guess react-guard can use the same