Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add example how to use with babel #33

Closed
FDiskas opened this issue Mar 24, 2021 · 1 comment
Closed

add example how to use with babel #33

FDiskas opened this issue Mar 24, 2021 · 1 comment

Comments

@FDiskas
Copy link

FDiskas commented Mar 24, 2021

There is a cool babel plugin ads ability to skip importing on each component this clsx library.

https://github.com/giuseppeg/babel-plugin-classnames

@lukeed
Copy link
Owner

lukeed commented Mar 24, 2021

That project is unrelated & is responsible for its own documentation (which it provides).

There is also babel-plugin-optimize-clsx btw, which has a different purpose but can work very well if you're buying into Babel ecosystem.

These two plugins don't work with one another, so if given a choice, I would prefer only providing a link to babel-plugin-optimize-clsx as it actually provides a benefit for your application's output. If you want to add a PR, you may add a link to this underneath obj-str in the Related section.

Thanks~!

@lukeed lukeed closed this as completed Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants