DEV Community

Discussion on: Everything about our migration from ReactJS to NextJS

Collapse
 
cloudkungfu profile image
Javel Rowe

Awesome writeup! I can definitely understand how Next.js is the better choice going forward. I might have to reference a few of these points when trying to convince a team I'm on to make the same switch 😅
One thing I'm curious about is what kind of folder structure do you use? I've realized that as the project grows it kinda gets harder for me to figure out where to put stuff lol

Collapse
 
frenkix profile image
Goran Jakovljevic

Hey Javel,

been working on multiple Next.JS projects and for folder structrure, I always create screens folder that mimicks pages folder and follow that pattern. If component is going to be reusable between multiple screens, it goes to component folder.

Collapse
 
cloudkungfu profile image
Javel Rowe

Thanks for this! I'll definitely be trying that screens folder approach

Collapse
 
hey_yogini profile image
Yogini Bende

Thanks for reading Javel.

The folder structure is a good point to write another article on and can be my next one 😅