Elements disappearing on page load
Answered
Siamese posted this in #help-forum
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?
3 Replies
@Siamese 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?
what exactly is the hydration error? have you tried tracing it
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>. 
I feel so stupid, sorry for wasting time