Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
monnef3138yThere are approaches to naming CSS classes where it is commonly used - e.g. BEM https://toptal.com/css/....
-
shizpi958ycomponentName
componentName-desdendentName
componentName--variationName
I name mine like this. There's a very valid reason for it though. -
Name them likeThis or LikeThis (if it's a method or function), and if they are constants, name them LIKE_THIS
-
@monnef that was a nice read. But I assure you these guys don't know what a naming convention is.
Dear fellow frontend devs: either name your classes like-this or like_this, but don't mix the two, because I will punch you.
undefined