Emballage : @tsparticles/preact
Wrapper Preact officiel pour tsParticles.
Installer
bash
pnpm add @tsparticles/preact @tsparticles/engine @tsparticles/slimFlux de configuration rapide
- Installez le package wrapper + moteur + chargeur.
- Initialisez le moteur une fois à la racine de l'application.
- Rendre le composant Preact avec l'objet options.
Références Monorepo
- Dossier du package : https://github.com/tsparticles/tsparticles/tree/main/wrappers/preact
- Application de démonstration : https://github.com/tsparticles/tsparticles/tree/main/demo/preact
Lisez-moi
- README du wrapper : https://github.com/tsparticles/tsparticles/tree/main/wrappers/preact#readme
