OperationCode/front-end

View on GitHub
decorators/getDisplayName.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
// Gets the display name of a JSX component for dev tools
const getDisplayName = Component => Component.displayName || Component.name || 'Component';

export default getDisplayName;