Skip to content

Commit 52d6dcd

Browse files
committed
wording tweak
1 parent 722368b commit 52d6dcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/eslint-config-widen-emotion/src/rules/no-conditional-css-prop.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ export default {
4646
meta: {
4747
docs: {
4848
category: 'Best Practices',
49-
description: 'Disallow conditionals within the css prop in components',
49+
description:
50+
'Disallow conditionals within the css prop, move them to the style prop. This increases the render performance.',
5051
example: `
5152
// Before
5253
<div css={[randomDivStyle, isRed ? {color: "red"} : null]} />

0 commit comments

Comments
 (0)