emotion allows css={[aRules, bRules]} and does the right thing for re-rendering, so it should not be flagged as a performance issue. We can turn this off for native elements like div, but css is allowed on any element, including custom elements.
There are other examples like this, for example, I can accept style on a custom element and pass it unchanged to the native one, and so would make sense to allow style as an exception on custom elements too.
emotion allows
css={[aRules, bRules]}and does the right thing for re-rendering, so it should not be flagged as a performance issue. We can turn this off for native elements likediv, butcssis allowed on any element, including custom elements.There are other examples like this, for example, I can accept
styleon a custom element and pass it unchanged to the native one, and so would make sense to allowstyleas an exception on custom elements too.