-
Notifications
You must be signed in to change notification settings - Fork 43
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
What's the difference between this and Twin.macro? What are the pros and cons of using each? #65
Comments
Would like to know more about this too. My initial reaction is that |
Honnestly the main difference was the syntax of Twin.Macro that was different before and the inheritance that seems to be supported now. I didn't test the last version yet but Twin.Macro seems better maintained too... |
@MathiasGilson I would like to add another question. 🤔 I have been using |
It runs at runtime which is less than ideal |
twin.macro doesn't allow you to use variables well AFAIK. This package is very simple, doesn't run in the browser and is much lighter. |
Yes, I am also having lots of trouble using Sure, performance gains may be nice, if most things are done at compile-time, but I found myself not knowing how to do some things with ease. I had to do some exploration on the web, on their examples, and ask some questions on their So from my experience, if you prefer readability and maintainability rather than performance, I would definitely stick with If you prefer the power of compile-time className object generation for better performance, integrated into a "bigger" ecosystem I'd suggest going with |
@FranciscoKloganB @MathiasGilson Hello! Can you explain again what twin.macro does at compile time and why it has better performance? |
This library looks amazing, and seems like it does exactly what I need - enabling me to use Tailwind with React without turning my JSX into an unreadable mess.
Since I'm new to Tailwind, I'm still trying to find the best way to use it. Can you help me figure out the difference between this library and Twin.macro? What are the pros and cons of using each?
The text was updated successfully, but these errors were encountered: