`tw(...)` vs `tw([...])` resulting different class
See original GitHub issuePlease see this minimum example
import { tw } from "twind";
document.body.innerHTML = `
<div class="${tw("bg-pink-50", "hover:text-pink-900", "p-3")}">
Not array
</div>
<hr />
<div class="${tw(["bg-pink-50", "hover:text-pink-900", "p-3"])}">
Array
</div>
`;
Screenshot
Everything behind hover:
will be ignored when using tw(...)
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
T.W. v. School Board of Seminole County, Florida - Casetext
Wilson alleges that T.W. was subjected to physical and emotional abuse at the hands of Garrett, resulting in long-term emotional and psychological harm....
Read more >Characterizing TW Hydra - IOPscience - Institute of Physics
We identify the best-fitting model by varying three stellar parameters: effective temperature, surface gravity, and magnetic field strength. We hold the values ...
Read more >LIBSVM Tools
If k is the number of classes, we generate k(k-1)/2 models, each of which involves only two classes of training data. According to...
Read more >Necrotizing soft tissue infections: Review and current concepts ...
Although not as widely accepted as a class of NSTI compared with types I and II, type III infections have been reported along...
Read more >Immunoglobulin Structure and Classes - TW
Antibody (or immunoglobulin) molecules are glycoproteins composed of one or more ... Antibody classes differ in valency as a result of different numbers...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rockmandash I don’t know where i got this from… I think some tweetet it:
Maybe this helps with your project.
It is now consistent with the array method:
If you want grouping to cross string boundaries you can use explicit grouping: