Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta Tags Not Rendering in "View Page Source" When Using react-helmet-async with Vite and React 18 #245

Open
hussainsah opened this issue Jan 29, 2025 · 0 comments

Comments

@hussainsah
Copy link

Issue: Meta Tags Not Appearing in "View Page Source" When Using react-helmet-async

I have built a site using React 18 with Vite. The site includes user input forms, data fetching with React Query, and uses react-helmet-async for managing meta tags. However, when I check the "View Page Source," the meta tags are not present.

I've reviewed various comments and discussions on this issue but haven't found a definitive solution. Given this, I am considering different rendering strategies:

  • SPA (Single Page Application)
  • SSR (Server-Side Rendering)
  • Pre-rendering (SSG - Static Site Generation)
  • HTML-only (if applicable in React 18, though I suspect it may not be)

Which approach would be best for ensuring that meta tags are correctly rendered in the page source? Any insights or recommendations would be greatly appreciated.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant