all files / src/ getDisplayName.js

100% Statements 4/4
100% Branches 3/3
100% Functions 1/1
100% Lines 3/3
1 2 3 4 5 113×      
export default function getDisplayName(Comp) {
  return Comp.displayName || Comp.name || 'Component';
}