DEV Community

Discussion on: Reasons not to use IDs in CSS

Collapse
 
caseycole589 profile image
Casey Cole

using ids is way more performant for css rendering not that it will make much difference when compared to other optimiztions but if you using web components where ids don't leak out of the shadow dom it doesn't make much since to use class for single use since that class can't be used anywhere else.