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

Components sharing styles is the same as functions sharing constants, so there isn't a fundamental difference here. One benefit of sharing constants is that you can use, eg, TypeScript to compile-time check that all of the constants are defined, making it much easier to remove unused styles.


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

Search: