DEV Community

Discussion on: What makes you think "Ok, that should be a component"?

Collapse
 
annietaylorchen profile image
Annie Taylor Chen

Usually it's the "third" time I write the same stuff, then I will consider making it a component. But it also depends, for instance for a button I just put a .button class to every button, even it got repeated everywhere I don't write it as component if the function is simple.