DEV Community

Discussion on: Style your frontend with an engineering flavour by using JSS

Collapse
 
ddrempe profile image
Damir Drempetić

Hi @ronca85 , thank you for your comment!

Each tool has its usage and cases where it is great and helpful and on the opposite side where it is overkill or some kind of burden instead. JSS is not an exception. :)

For some smaller sites and projects there wouldn't be a lot of benefits of using JSS and maybe even React, so of course it can be built with good old CSS.

But if you are building some bigger enterprise application, or if you need to build some kind of design system or component library which can be reused across projects and apps, I like it how React with JSS solves this requirement for me. Because I can organise styles systematically, keep them consistent and manageable at one place (in theme).

I never had a need for reusing just a style (implemented in css, jss or any other technology), but always some piece of UI, or to be more precise some component. So I find it natural that style is tied to some html element or more complex React component.

Keep in mind this is my experience cause I'm oriented on products and applications where a lot of attention should be given also how app is built and how maintainable it is. If I would be building sites or some presentational web elements, I would have some different mindset.

Do you have some examples of reusing css across projects? How do you keep styles framework agnostic and just import and use them. It's always cool to see other approaches! :) Cheers!