Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not OP, but you could use CSS modules, styled components or styled-jsx, all of which auto-generate unique classnames (styled-jsx uses a HTML attribute for it, I think).


I see.

These solutions all seem quite a lot more complicated than nested scopes! And at least for styled components (angular, I presume) and styled-jsx (react), they're framework-specific. Why are these solutions better?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: