We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
null
1 parent da560d5 commit 1c3bb89Copy full SHA for 1c3bb89
packages/react-styles/src/index.ts
@@ -2,8 +2,8 @@
2
*
3
* @param {any} args list of objects, string, or arrays to reduce
4
*/
5
-export function css(...args: any): string {
6
- // Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
+export function css(...args: any): string | null {
+ // Adapted from https://github.com/JedWatson/classnames/blob/main/index.js
7
const classes = [] as string[];
8
const hasOwn = {}.hasOwnProperty;
9
@@ -26,5 +26,5 @@ export function css(...args: any): string {
26
}
27
});
28
29
- return classes.join(' ');
+ return classes.join(' ') || null;
30
0 commit comments