Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 496 Bytes

wrapcomponentname.md

File metadata and controls

28 lines (18 loc) · 496 Bytes

wrapComponentName

Wraps the name of a React component.

Arguments

Argument Type Description
Component React.Component A React component.

Returns

string: The wrapped name of a React component.

Examples

import React from 'react'
import wrapComponentName from '@helpscout/react-utils/dist/wrapComponentName'

class Napoleon extends React.Component {
  ...
}

wrapComponentName(Napoleon, 'withSkills')
// withSkills(Napoleon)