DEV Community

Discussion on: The React core team finally have opinions about CSS

Collapse
 
mkvet profile image
Mark Kvetny • Edited

The difference here is that Tailwind has already generated the "cursor-not-allowed" class and injected it into a CSS file at build time. There's no CSS injection happening during runtime at all, just toggling classes.

Collapse
 
jackmcbride98 profile image
Jack McBride

I see thanks. Would this require the JS bundle to load in to work though?

Thread Thread
 
mkvet profile image
Mark Kvetny

Nope, there's no runtime so the JS bundle isn't involved here at all. In the end, Tailwind outputs a plain old CSS file, the way it's generated is just a bit funky.