babel-plugin-transform-styletron-display-name
babel-plugin-transform-styletron-display-name
npm i babel-plugin-transform-styletron-display-name
babel-plugin-transform-styletron-display-name

babel-plugin-transform-styletron-display-name

⚡ Toolkit for component-oriented styling

by styletron

1.2.0 (see all)License:MITTypeScript:Not Found
npm i babel-plugin-transform-styletron-display-name
Readme

babel-plugin-transform-styletron-display-name

Check our documentation at styletron.org.

Adds displayName to styletron-react components.

before

const Foo = styled("div", {
  color: "red"
});
const Bar = styled("div", {
  color: "red"
});

after

Foo = styled("div", {
  color: "red"
});
Foo.displayName = "Foo";
Bar = styled("div", {
  color: "red"
});
Bar.displayName = "Bar";

Install

Using npm:

npm install --save-dev babel-plugin-transform-styletron-display-name

or using yarn:

yarn add babel-plugin-transform-styletron-display-name --dev

Downloads/wk

343

GitHub Stars

3.3K

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

40

OPEN ISSUES

29

OPEN PRs

6
VersionTagPublished
1.2.0
latest
4mos ago
1.2.0-beta.1
beta
5mos ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate