Live data from Hacker News

Stop using Tailwind's utility classes in the HTML class attribute

muehlemann-popp.ch

1–4 of 4 posts

Re: Stop using Tailwind's utility classes in the HTML class attribute

#2
You want to avoid duplication, usually. You can also do it by creating components in React (and other frameworks). Doing so keeps the style close to the component definition which I think is good: if your component is say a nav bar some of its appearance comes from how you nest flexboxes and some from the flexbox configuration. Why not keep that all together?