Emballage : @tsparticles/nextjs
Wrapper Next.js officiel construit sur @tsparticles/react.
Installer
bash
pnpm add @tsparticles/nextjs @tsparticles/engine @tsparticles/slimFlux de configuration rapide
- Installez le wrapper Next.js et les dépendances.
- Continuez le rendu côté client uniquement pour le canevas de particules.
- Initialisez le moteur une fois et restituez le composant wrapper.
Références Monorepo
- Dossier du package : https://github.com/tsparticles/tsparticles/tree/main/wrappers/nextjs
- Applications de démonstration : https://github.com/tsparticles/tsparticles/tree/main/demo/nextjs, https://github.com/tsparticles/tsparticles/tree/main/demo/nextjs-legacy
Lisez-moi
- README du wrapper : https://github.com/tsparticles/tsparticles/tree/main/wrappers/nextjs#readme
