Invólucro: @tsparticles/react
Wrapper oficial do React para tsParticles.
Instalar
bash
pnpm add @tsparticles/react @tsparticles/engine @tsparticles/slimFluxo de configuração rápida
- Instale o pacote wrapper + motor + carregador.
- Inicialize uma vez com
ParticlesProvidereloadSlim. - Renderize o componente
Particlescom opções digitadas.
Referências Monorepo
- Pasta do pacote: https://github.com/tsparticles/tsparticles/tree/main/wrappers/react
- Aplicativo de demonstração: https://github.com/tsparticles/tsparticles/tree/main/demo/react
Leia-me
- LEIA-ME do wrapper: https://github.com/tsparticles/tsparticles/tree/main/wrappers/react#readme
