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
Thank you for the wonderful library, I have tried dozens of CSS-in-JS library but this one ticks almost all my requirements while using Next.js
When using this in a typescript project, I noticed that it doesn't have any typescript definition files.
So, for now I have used it like this:
Create a new file react-css-modules.macro.d.ts. This defines the macro function.
Lastly, I was wondering if this library could do all the work in compile-time and thus avoid runtime overhead, however small that may be. Is this possible?
Thanks.
The text was updated successfully, but these errors were encountered:
I probably somehow forgot to add the details about TS support
Would you mind making a Pull Request updating the docs?
I'm quite busy at the time to do that my self
Thank you for the wonderful library, I have tried dozens of CSS-in-JS library but this one ticks almost all my requirements while using Next.js
When using this in a typescript project, I noticed that it doesn't have any typescript definition files.
So, for now I have used it like this:
react-css-modules.macro.d.ts
. This defines the macro function.react.d.ts
. This adds thestyleName
prop to all react attributes.tsconfig.json
This setup is working fine in Next.js Typescript project.
Also, I noticed that the README states the default value of warning is
false
but it istrue
in the code:react-css-modules.macro/src/macro.js
Line 7 in f3a53bc
Lastly, I was wondering if this library could do all the work in compile-time and thus avoid runtime overhead, however small that may be. Is this possible?
Thanks.
The text was updated successfully, but these errors were encountered: