4 ms·
The style attributes can get pretty long and hard to read. I personally prefer the approach of assigning it via classnames/ids, so that it's shorter in the html
by Akronymus 2y ago
The style attributes can get pretty long and hard to read. I personally prefer the approach of assigning it via classnames/ids, so that it's shorter in the html itself, along with being easier to switch out components. (Altough, I also use htmx, so that's another reason to go with classnames/ids)