The css() function can only take arguments that are properties of the styles prop object, plain JavaScript objects, falsey values, or arrays of those types.
It might also make sense for this rule to validate the shape of the JavaScript objects passed to css() to ensure that they are flat objects appropriate for inline styles.
The
css()
function can only take arguments that are properties of thestyles
prop object, plain JavaScript objects, falsey values, or arrays of those types.Bad:
Good:
It might also make sense for this rule to validate the shape of the JavaScript objects passed to
css()
to ensure that they are flat objects appropriate for inline styles.