Improve Installation with vite/react docs #18598
hassaanhaider88
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Tailwind CSS Team,
While integrating Tailwind CSS with a Vite + React project, I noticed a potential issue in the documentation that may confuse beginners.
In many tutorials or snippets, the following config is shown:
However, when working on a Vite + React setup, this causes an error unless the
@vitejs/plugin-react
is also included:✅ Correct version for React projects:
🙏 Suggestion:
To help beginners avoid confusion or errors, it would be great if the Tailwind CSS documentation clarified the need to include
@vitejs/plugin-react
when using React + Vite.Thanks for your amazing work and tools!
Best regards,
*Hassaan Haider .Dev, Front-end Developer.
Beta Was this translation helpful? Give feedback.
All reactions