confusion about modules
fsjoyti opened this issue · comments
Hi @fsjoyti! Thanks for your interest. This is not meant to be used in CSS files. Rather, it is a project to help you write CSS in JavaScript. Here's a more complete example, all contained in the same JSX file:
function Foo({ styles }) {
return (
<div {...css(styles.foo)}>
Foo
</div>
);
}
export default withStyles(() => {
foo: {
color: 'red',
},
})(Foo);
I hope this helps!