UNPKG

scu-inspector

Version:

Displaying props changes of shouldComponentUpdate

8 lines (5 loc) 241 B
import { isExist } from './utils' export default function getDisplayName (target) { const displayName = target.displayName || target.constructor.name || target.name return (name) => `${displayName}${isExist(name) ? `-${name}` : ''}` }