Classnames support
See original GitHub issueDescribe the solution you’d like
I really like your plugin! It’s awesome. I just had the issue, that I’m using classnames in combination with the classnames-loader within webpack. Thus I can do something like this in my component files:
import styles from './styles.scss'
<MyComponent className={styles('myStyle', {someOtherStyle: true})}
For more details, see: https://github.com/itsmepetrov/classnames-loader and https://github.com/JedWatson/classnames
So currently, I just get the error message: This expression is not callable. Type '{ ... }' has no call signatures.
Is there any chance that this can be supported somehow by your plugin?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
classnames - npm
A simple utility for conditionally joining classNames together. Latest version: 2.3.2, last published: 3 months ago. Start using classnames ...
Read more >"classname" | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >Element.className - Web APIs | MDN
The className property of the Element interface gets and sets the value of the class attribute of the specified element.
Read more >Why React classnames Is A Lifesaver And How You Could ...
In this tutorial, I cover why you should use classnames and how to use it -- for those times when you need multiple...
Read more >You don't know the classNames library - Arek Nawo
Support me by buying me a coffee, sponsoring, or hiring me to do a beautiful website for you! You don't know the classNames...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’m still interested in this feature, but I had some problems at the beginning with understanding how typescript plugins work. Then I somehow forgot about this issue and since then I use
// @ts-ginorewhich really doesn’t make me happy at all 😄I’m not sure if I find time for implementing this feature and get my head into typescript plugin implementation. But when I have time for it, I’ll try to do it 😃
I’m going to close this off for now, but if anyone wants to pick this up in future, feel free to open new issue.