Next.js Discord

Discord Forum

Elements disappearing on page load

Answered
Siamese posted this in #help-forum
Open in Discord
SiameseOP
I don't understand what is happening here. I'm using NextJS with the app router, and I have a component that is rendered on the server, then once the page loads, it disappears, and I get a hydration error. What could cause this?
Answered by Dayo
what exactly is the hydration error? have you tried tracing it
View full answer

3 Replies

Answer
SiameseOP
Oh my gosh, I read those messages OVER AND OVER and never saw the error: Warning: validateDOMNesting(...): <div> cannot appear as a child of <html>. :Facepalm:
I feel so stupid, sorry for wasting time