-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tsx
38 lines (31 loc) · 983 Bytes
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import classNames from "classnames";
import "./styles.css";
const Test: React.FC = () => {
// these classes are not ordered by the plugin
const classes = "hover:text-red-50 mb-1";
// thesee classes are not ordered by the plugin
const classes2 = classNames("hover:text-red-50 mb-1", {
"hover:text-red-50 mb-1": true,
"hover:text-blue-50 mb-1": false,
});
return (
<div>
<div className="hover:text-red-50 mb-1">
These classes are ordered by the plugin
</div>
<div className={`${classes} hover:text-red-50 mb-1`}>
These classes are ordered by the plugin
</div>
<div
className={classNames("hover:text-red-50 mb-1", {
"hover:text-red-50 mb-1": true,
"hover:text-blue-50 mb-1": false,
})}
>
These classes are ordered by the plugin
</div>
<div className={classes2}>These classes are ordered by the plugin</div>
</div>
);
};
export default Test;