You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-12Lines changed: 2 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,17 +54,7 @@ import cc from "classcat"
54
54
If you prefer not to use a build system, you can load Classcat from a CDN and it will be globally available through the `window.classcat` object.
55
55
56
56
```html
57
-
<!doctype html>
58
-
<html>
59
-
<body>
60
-
<scriptsrc="https://unpkg.com/classcat"></script>
61
-
<script>
62
-
63
-
constcc= classcat
64
-
65
-
</script>
66
-
</body>
67
-
</html>
57
+
<scriptsrc="//unpkg.com/classcat"></script>
68
58
```
69
59
70
60
## Usage
@@ -100,7 +90,7 @@ cc([
100
90
101
91
## Credits
102
92
103
-
Classcat is inspired by [JedWatson/classNames](https://github.com/JedWatson/classnames) with support for nested objects and [better performance](/bench/README.md).
93
+
Classcat is an alternative to [JedWatson/classNames](https://github.com/JedWatson/classnames) with support for nested objects and [superior performance](/bench/README.md).
104
94
The difference between classcat and classNames is that classNames accepts a [variable number of arguments](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments), whereas classcat only accepts a single argument.
0 commit comments