You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works very well in the JSX file. But there are still some small regrets. When I use classnames() in JSX, it doesn't work. Is it possible to enable this in JSX?
also, consider the clsx package, or even just the fact that className can be anything apart from a string.
We can definitely try to support some of the simpler cases, like classnames("string literal") or clsx("literal-1", "literal-2"). For now, I'm going to leave this as an exercise for anyone who'd like to contribute such features. We can tackle this for one use-case at a time, for one CSS-in-JS package/solution at a time
Hi, thanks for your extension!
One thing I noticed and that can be improved is the following. If we work with .jsx or .tsx files, the extension resolves the css class if specified without curly brackets, but it doesn't if the curly brackets are there. For instance:
This works very well in the JSX file. But there are still some small regrets. When I use
classnames()
in JSX, it doesn't work. Is it possible to enable this in JSX?e.g.
The text was updated successfully, but these errors were encountered: