Next.js Discord

Discord Forum

Im using next without app router for the 1st time can anyone guide me a little

Answered
Schneider’s Smooth-fronted Caima… posted this in #help-forum
Open in Discord
Schneider’s Smooth-fronted CaimanOP
the 1st thing i realise new was a api folder it has been a while since i last used next maybe this is new in any case then there were some other new files as well .tsx which looked useless i deleted them ill delete _document as well after that there is no layout.tsx and page.tsx is there no layout with i use it without app router?
Answered by joulev
yes, a lot of cons. nextjs brings its own router, so if you use a different router, they clash, and only god knows what kind of unexpected behaviour comes out of that clash
View full answer

9 Replies

Schneider’s Smooth-fronted CaimanOP
for the routing should i use react router dom?
Schneider’s Smooth-fronted CaimanOP
I read it
But I have a question can I use react router dom only?
And like will there be any cons?
yes, a lot of cons. nextjs brings its own router, so if you use a different router, they clash, and only god knows what kind of unexpected behaviour comes out of that clash
Answer
so don't do it. if you want to use react router, use it with a framework that supports it (iirc remix supports it?)
Schneider’s Smooth-fronted CaimanOP
okk got it ill just use the routing option next provides
thanks so much