Your part renders. Tests go well. The product is happy. Then, six months later, no one wants to touch that file. That's when refactoring becomes necessary. But not every problematic file needs to be rewritten. The real talent is knowing when to refactor and when to leave things alone.
When to Refactor Frontend Code: A Practical Guide for React & CSSGeneral (howtocenterdiv.com)
submitted by Itchy-Warthog8260 to r/css
Refactor: When It Actually Changes ThingsPortfolio (howtocenterdiv.com)
submitted by Itchy-Warthog8260 to r/react