Skip to content

包装:@tsparticles/react

tsParticles 的官方 React 包装器。

安装

bash
pnpm add @tsparticles/react @tsparticles/engine @tsparticles/slim

快速设置流程

1.安装wrapper+engine+loader包。2. 使用 ParticlesProviderloadSlim 初始化一次。3. 使用类型化选项渲染 Particles 组件。

Monorepo 参考资料

自述文件

相关文档