What is a smart way to name CSS classes to be able to distinct between those used for styling and those for JS events?
Looking at a div
with 4 CSS classes, it would speed things up for me, if I could see if the class is used for only styling or only design, to reduce debugging-time.
I know I can start prefixing all CSS-style classes with style_
, but is there a better way, that's maybe are a convention too?
Just use "js-" in the begining of all classes used for JS events.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With