DEV Community

Discussion on: How I structure my React /TS applications (2021)

Collapse
 
dongnhan profile image
dongnhan • Edited

Totally agree.

The keyword here as I know is vertical folder structure vs horizontal folder structure or package by feature vs package by layer.

As the project grows, I think package by feature would be better, you know where the code should supposed be found when you are searching for it.

Sometimes, we do create a shared or common folder (the same level with other features) to serve common codes.