DEV Community

Discussion on: A 2021 guide about structuring your Next.js project in a flexible and efficient way

Collapse
 
swiftwinds profile image
SwiftWinds

Sorry if this is a silly question but why is elements nested in components? Are there supposed to be sibling folders to elements? If so, what?

Collapse
 
andrej_gajdos profile image
Andrej Gajdos

I am wondering the same thing

Collapse
 
oseisaac profile image
ISaac

I have the exact same question, not sure why you need that

Collapse
 
kimskogsmo profile image
Kim Skogsmo • Edited

With atomic design you organize your components in five different types; atoms, molecules, organisms, templates, pages. Maybe the OP is insinuating something similar with his 'elements' folder. For example, there could be an 'elements' and a 'views' folder in there, or something.

See: bradfrost.com/blog/post/atomic-web...