There are some potential and documented ways to cut down on the explicitly static stuff like classnames. I’ve bugged the team about it for years but there are higher leverage fixes to be done
There are some potential and documented ways to cut down on the explicitly static stuff like classnames. I’ve bugged the team about it for years but there are higher leverage fixes to be done
https://github.com/vercel/next.js/discussions/87463
https://github.com/vercel/next.js/discussions/87463
Debugging in production is a bit worse, admittedly.
Debugging in production is a bit worse, admittedly.
But in a line: “tailwind as a compile target so you don’t have to learn a whole new set of syntax for CSS properties you already know”
Or “use CSS like inline styles, get classnames with a compiler”
But in a line: “tailwind as a compile target so you don’t have to learn a whole new set of syntax for CSS properties you already know”
Or “use CSS like inline styles, get classnames with a compiler”
classnames (JavaScript • 🟢)
⭐ 17.8K → https://github.com/JedWatson/classnames
chrome-extensions-samples (JavaScript • 🟢)
⭐ 17.7K → https://github.com/GoogleChrome/chrome-extensions-samples
⚡ Only signal. Zero noise.
classnames (JavaScript • 🟢)
⭐ 17.8K → https://github.com/JedWatson/classnames
chrome-extensions-samples (JavaScript • 🟢)
⭐ 17.7K → https://github.com/GoogleChrome/chrome-extensions-samples
⚡ Only signal. Zero noise.
This will be part of a future refactor[...]
This will be part of a future refactor[...]
2. It’s probably not a problem, because some recent benchmarks suggest it might actually be *faster* than classNames for the browser to render.
2. It’s probably not a problem, because some recent benchmarks suggest it might actually be *faster* than classNames for the browser to render.
bonus: add a `:before` or `:after` that has `content: attr(class)` and you'll see your classnames printed out on the elements!
bonus: add a `:before` or `:after` that has `content: attr(class)` and you'll see your classnames printed out on the elements!
Imagine this working for classNames, cross-referencing dom ids,…
Could help avoid a lot of issues
Imagine this working for classNames, cross-referencing dom ids,…
Could help avoid a lot of issues