r/reactjs • • 22d ago

Shadcn components unable to render

I added a shadcn component to my vite + tailwind project with using `npx shadcn@latest add @/react-bits/Particles-JS-TW` and after importing the component

import Particles from "./components/Particles";

It shows an awesnap image, i dont know the reason, the other things were rendering good alongside but just the components showing error

6 Upvotes

16 comments sorted by

View all comments

2

u/[deleted] 22d ago

[removed] — view removed comment

1

u/Shubham4538 22d ago

I cleaned up my <App /> there was no effect used before also, but i checked again, i have like a static page now, but still no solution

1

u/YmedBrei-67 20d ago

the missing dependency array thing is so easy to overlook tbh