-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
doesn't work properly with react-css-modules #498
Comments
@mkxml seems like he is using |
@developit Hmm, with preact-compat it should work. After some consideration I removed my comment since it wouldn't help in this case. It would be useful if it was preact core + css-modules. |
indeed - your comment is how I use CSS modules too 👌 |
It's very verbose to write |
@mqklin understandable! This will likely be solved over in |
Any progress on this issue? Maybe I should create the issue in |
@mqklin Might be useful - link me in there so maybe we can get more context. I'm not super familiar with react-css-modules, so any help is very much appreciated! |
I've migrated to styled-component. I don't think someone needs this issue to be fixed, so I'm closing it. |
so sad, hoped it to be fixed... =/ |
@developit maybe it could get a bit of attention for upcoming release of Preact X? I know this issue was a kind of dead-end, but I'm ready to help if had some clues where to start (have a little to no experience in Preact/Babel plugins development). Currently As for me, this is real helper in React project as you can switch from writing |
demo
Only inner
styleName
compiles to 'class', but inners not. You can see thatdiv-2
value hasstylename
attribute, but shouldclass
asdiv-1
.Component code:
styles.css:
How it looks:
How it should:
The text was updated successfully, but these errors were encountered: