Next.js Discord

Discord Forum

Best practice for the below code

Answered
Muhammed Khal posted this in #help-forum
Open in Discord
Hai Guys,, here I used the FileUploadPopUpComponent in my root-layout, so I can show the in-progress files anywhere in the app, so it won;t be disapper when I route to some other pages.

Here's my question is, is it's a best practice to do that? or do you guys have any better option for that?
Answered by Northeast Congo Lion
I generally keep layout.tsx to include components
View full answer

6 Replies

@B33fb0n3 here
Northeast Congo Lion
I would think so yes.
to keep it cleaner tho
Northeast Congo Lion
I generally keep layout.tsx to include components
Answer
Northeast Congo Lion
i would remove suppressHydrationError
Okay will do that, thanks lot 😇