Skip to content

Idiomatic Vite + React SPA Template #51

@harrysolovay

Description

@harrysolovay

I'm unsure of whether denoland/react-vite-ts-template is still valid. For instance, why does it need to import "react" and "react-dom" within the vite.config.ts. Also, it lacks the types for "vite/client", which causes type errors upon importing css and non-JS asset types.

I'd be extremely grateful for an updated Vite + React SPA template that showcases the correct usage of this plugin. I've sifted through OS projects using this plugin and I don't think anyone has gotten it right so far for React + Vite SPAs. I think an idiomatic template/example would go a long way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions