Skip to content

fix: remove nested main element causing hydration mismatch#1415

Open
Kokila-chandrakar wants to merge 1 commit into
magic-peach:mainfrom
Kokila-chandrakar:fix/hydration-mismatch
Open

fix: remove nested main element causing hydration mismatch#1415
Kokila-chandrakar wants to merge 1 commit into
magic-peach:mainfrom
Kokila-chandrakar:fix/hydration-mismatch

Conversation

@Kokila-chandrakar
Copy link
Copy Markdown

Summary

Removed the redundant

element from src/app/page.tsx.

Changes

  • Removed nested <main id="main-content"> wrapper from the Home page.
  • Kept the single <main> element provided by src/app/layout.tsx.

Why

Having nested <main> elements creates invalid HTML structure and can contribute to React hydration inconsistencies between server-rendered and client-rendered markup.

Result

  • Cleaner semantic HTML structure.
  • Single main landmark for accessibility.
  • Reduced risk of hydration mismatch warnings.

close #1397

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

@Kokila-chandrakar is attempting to deploy a commit to the magic-peach1's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

✅ PR Format Check Passed — @Kokila-chandrakar

Basic format checks passed. A maintainer will review your code changes.

This does not mean the PR is approved — it just means the format is correct.

@github-actions github-actions Bot added level:beginner Beginner level - 20 pts type:bug Bug fix type:design UI/UX design labels May 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

👋 Thanks for your PR, @Kokila-chandrakar!

Welcome to Reframe — a browser-based video editor built for everyone 🎬

What happens next

  1. 🤖 Automated checks — build & TypeScript typecheck will run automatically
  2. Vercel preview — a preview deployment will be created (requires maintainer authorization for fork PRs)
  3. 👀 Code review — a maintainer will review your changes
  4. 🚀 Merge — once approved, your PR will be merged!

Quick checklist

  • PR title follows Conventional Commits (e.g. feat: add dark mode)
  • Linked the issue this PR closes (e.g. Closes #123)
  • Tested the changes locally (bun run dev)
  • Build passes (bun run build)

Useful links

Happy coding! 🎉

@Kokila-chandrakar
Copy link
Copy Markdown
Author

Hi @magic-peach ,

I’ve submitted a fix for the hydration mismatch issue by removing the redundant nested <main> element from src/app/page.tsx, since the primary <main> is already provided in src/app/layout.tsx.

Could someone please review this PR and let me know if any changes are needed?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:beginner Beginner level - 20 pts type:bug Bug fix type:design UI/UX design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]

1 participant