airbnb/react-with-styles

Doesn't work with className?

towry opened this issue · 2 comments

towry commented

How to add custom className?

<h3 { ...css(styles.title)} className="heading">title</h3>

h3 will only have one class name.

You don't; all styling comes through css.

Here's a "dirty" workaround to your problem :

<h3 { ...css(styles.title)} className="heading">title</h3>

Would be

<h3 className={css(styles.title).className+" heading"}>title</h3>