Skip to content

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

Description

@hussainsah

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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions