-
Wouldn't it be more concise if we did the import statement like this: import tw from 'twind' Instead import { tw } from 'twind' I honestly don't know the reason why you guys did that. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
sastan
Dec 28, 2020
Replies: 1 comment
-
Thanks for the question. We are not using the default export for several reasons:
From our view these outweigh the need to write two additional curly braces. I hope this did answer your question - otherwise please follow up |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lukejacksonn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the question. We are not using the default export for several reasons:
tw
in an editor most can auto-import it if it is a named exportFrom our view these outweigh the need to write two additional curly braces.
I hope this did answer your question - otherwise please follow up