Comparing version 2.1.14 to 2.1.15
{ | ||
"name": "classix", | ||
"version": "2.1.14", | ||
"version": "2.1.15", | ||
"description": "The fastest and tiniest utility for conditionally joining classNames.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/classix.js", |
@@ -93,2 +93,20 @@ ![Banner](media/banner.jpg) | ||
## Migrating to classix | ||
If you are using `classnames` or `clsx`, you can migrate to `classix` by changing your `imports`: | ||
```diff | ||
- import classnames from 'classnames'; | ||
+ import cx from 'classix'; | ||
``` | ||
And if you were using object arguments, you'll have to convert them to string arguments: | ||
```diff | ||
- classnames({ 'class-1': cond }); | ||
+ cx(cond && 'class-1') | ||
``` | ||
That's it! | ||
## Changelog | ||
@@ -95,0 +113,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6548
118