You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The whole point of react-with-styles is to write components that are interface-agnostic.
An interface, even with { padding } passed in, might choose not to create an inline style at all - our native CSS interface does that, for example. In that case, no style prop would ever exist.
In the readme, you have this example
<div {...css(styles.container, { padding })}>
What benefit is providing by running the plain object through the
css
function?From looking at the code, it just passes these objects into the
style
prop. But why not do this directly? Wouldn't that be more performant?The text was updated successfully, but these errors were encountered: