DEV Community

Discussion on: Using SASS partials

Collapse
 
robinjohnmike profile image
J.M Robin

How do you determine if something is a component or not? I just started learning sass and I'm having trouble deciding if something should be a component or not. Thanks.

Collapse
 
dapseen profile image
Adedapo ajuwon

It's like writing a function in programming language, i divide my components into bit based on the task each is performing.

Think of component as a block of Style that can perform a particular task and also be repeated in your stylesheet
e.g button, navigation, variables,etc, they can be repeated in your present project and other upcoming projects too.