TLDR Dev · OPINIONS & ADVICE
THE VERTICAL CODEBASE
Summary from the TLDR Dev newsletter
Stop splitting your codebase by technical type (components/, hooks/, or utils/). Group by functionality instead. The “vertical” structure puts everything related to a domain (widgets, profiling, or billing) in one directory, regardless of whether it's a component, hook, or util.