Skip to content

Commit

Permalink
wording tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
joephela committed Jan 13, 2025
1 parent 722368b commit 52d6dcd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export default {
meta: {
docs: {
category: 'Best Practices',
description: 'Disallow conditionals within the css prop in components',
description:
'Disallow conditionals within the css prop, move them to the style prop. This increases the render performance.',
example: `
// Before
<div css={[randomDivStyle, isRed ? {color: "red"} : null]} />
Expand Down

0 comments on commit 52d6dcd

Please sign in to comment.