Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS class as object #5

Open
JNaftali opened this issue Apr 23, 2017 · 1 comment
Open

CSS class as object #5

JNaftali opened this issue Apr 23, 2017 · 1 comment

Comments

@JNaftali
Copy link

Hey. I've had trouble using an object as a class in jsx with this package. According to the preact docs and the repl on preactjs.com what's supposed to happen is that the object keys with truthy values get used as classes. Instead, I just end up with a class of [object Object]. Suggestions?

@just-boris
Copy link
Owner

just-boris commented Apr 24, 2017

Please check that you have correct Preact version (bellow 8).

That feature has been removed from 8.0, see issue: preactjs/preact#401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants