DEV Community

Discussion on: Senior front end dev here, ask me anything!

Collapse
 
kendalmintcode profile image
Rob Kendal {{☕}}

I've given a pretty comprehensive structure answer in one of the other threads on here, so check that out 😊👍🏻

But generally, it's about not writing more than you have to and sticking to DRY (Don't Repeat Yourself) and KISS (Keep It Simple Stupid) as much as possible. Components and utilities should have single responsibilities and break longer components into smaller, reusable ones. I also like to abstract as much as possible to avoid needless repetition.