Pull to refresh
0
0
Паша @MingONE

Frontend developer

Send message
Вот так можно задать любое имя для отображения в девтулсах

function withSubscription(WrappedComponent) {
  class WithSubscription extends React.Component {/* ... */}
  WithSubscription.displayName = `WithSubscription(${getDisplayName(WrappedComponent)})`;
  return WithSubscription;
}

function getDisplayName(WrappedComponent) {
  return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}


https://facebook.github.io/react/docs/higher-order-components.html#convention-wrap-the-display-name-for-easy-debugging

Information

Rating
Does not participate
Location
Черновцы, Черновицкая обл., Украина
Date of birth
Registered
Activity