Wrapper: @tsparticles/nextjs
Wrapper oficial de Next.js creado en @tsparticles/react.
Instalar
bash
pnpm add @tsparticles/nextjs @tsparticles/engine @tsparticles/slimFlujo de configuración rápida
- Instale el wrapper y las dependencias de Next.js.
- Mantenga el renderizado solo del lado del cliente para los canvas de particulas.
- Inicialice el engine una vez y renderice el componente.
Referencias de Monorepo
- Carpeta del paquete: https://github.com/tsparticles/tsparticles/tree/main/wrappers/nextjs
- Aplicaciones de demostración: https://github.com/tsparticles/tsparticles/tree/main/demo/nextjs, https://github.com/tsparticles/tsparticles/tree/main/demo/nextjs-legacy
README
- README del wrapper: https://github.com/tsparticles/tsparticles/tree/main/wrappers/nextjs#readme
