[NFC] Add display name for custom React components
This improves readability of "Components" tab from React Development Tools extension for Chrome
This commit is contained in:
1 parent
7b19bbb1a7
commit
8a3f52b704
23 files changed
+28
-2
No files matched your search
@@ -5,6 +5,7 @@ const _ = require('lodash');
|
||||
const cx = require('classnames');
|
||||
|
||||
const ErrorBar = createClass({
|
||||
displayName : 'ErrorBar',
|
||||
getDefaultProps : function() {
|
||||
return {
|
||||
errors : []
|
||||
|
||||
Reference in new issue
Block a user