Emballage : @tsparticles/react
Wrapper React officiel pour tsParticles.
Installer
bash
pnpm add @tsparticles/react @tsparticles/engine @tsparticles/slimFlux de configuration rapide
- Installez le package wrapper + moteur + chargeur.
- Initialisez une fois avec
ParticlesProvideretloadSlim. - Rendre le composant
Particlesavec les options saisies.
Références Monorepo
- Dossier du package : https://github.com/tsparticles/tsparticles/tree/main/wrappers/react
- Application de démonstration : https://github.com/tsparticles/tsparticles/tree/main/demo/react
Lisez-moi
- README du wrapper : https://github.com/tsparticles/tsparticles/tree/main/wrappers/react#readme
