Skip to content
Discussion options

You must be logged in to vote

Thanks for the question. We are not using the default export for several reasons:

  • we have several named exports and types
  • we are providing CJS and UMD bundles that are difficult to implement when having mixed exports
  • if you start writing tw in an editor most can auto-import it if it is a named export

From our view these outweigh the need to write two additional curly braces.

I hope this did answer your question - otherwise please follow up

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lukejacksonn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #25 on December 28, 2020 17:27.