Jan 14, 2021
Great article :)
There are a lot of advantages to keeping code in a single file too. Even your styles can go in the main component file. One of the big advantages of css in js solutions is that they allow you do this.
Collocation is the idea of keeping related items close to each other. So if a new dev joins the project and they want to update the Card file everything they need is right in front of them but going to one file.
More on collocation: https://kentcdodds.com/blog/colocation