1.0.7 • Published 3 years ago

@wana/babel-plugin-add-react-displayname v1.0.7

Weekly downloads
17
License
MIT
Repository
github
Last release
3 years ago

@wana/babel-plugin-add-react-displayname

Set the displayName property of your higher-order function components, using a Babel plugin! 🥳

  • Plain function components are skipped, since they have good support in React devtools.
  • Class components are not supported.

Forked from: opbeat/babel-plugin-add-react-displayname

Works with Babel 7.0.0+

Usage

npm install @wana/babel-plugin-add-react-displayname

And in .babelrc or whatever:

{
    "plugins": [
        "@wana/add-react-displayname"
    ]
}

Options

  • callees?: string[]

    Set the displayName of any component wrapped by one of these function names, even when the component doesn't return JSX.

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago