particles 粒子库使用 在 react 中的基础使用,npm 地址 安装依赖包 $ npm install react-particles-js -S 在组件中使用 import Particles from 'react-particles-js' class App extends Component{ render(){ return ( <Particles /> ) } } 具体 params 使用,查看链接