DEV Community

Discussion on: Ways to Reduce your Front-End Codes

Collapse
 
zhcalvin profile image
Jiawei Li

styled-components is a good approach to struct styling codes. But yet, it's priority is not to reduce the size of code base.

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

Styles are declarative so there's no way to reduce the code base (even if you add an UI kit, the code will be in this kit and thus will be loaded and interpreted).

It's like pretending to reduce HTML code, it makes a non sense, ehat you will do is to optimise as best as possible and reduce unused code to the minimum.