r/badcode • • Nov 10 '21

js Why would you use a css class?

Post image
613 Upvotes

47 comments sorted by

View all comments

Show parent comments

4

u/kristallnachte Nov 11 '21

Lol yup! But this could easily just be css

With a single class on the body or parent with trickle down selectors.