particles.js icon indicating copy to clipboard operation
particles.js copied to clipboard

How to setup particles.js with React ?

Open Kasunjalitha opened this issue 2 years ago • 3 comments

I wanna setup this particles.js library with React application. I have installed with npm install particles.js. Then how to import it and use it? Where should I put particlesjs-config.json file?

Kasunjalitha avatar Nov 26 '21 04:11 Kasunjalitha

You don't need to install that package to have particles in React. There's this package that already creates a particles component in React: https://github.com/Wufe/react-particles-js

There's a deprecation notice here: https://github.com/Wufe/react-particles-js#warning-deprecation-notice that recommends to migrate to react-tsparticles

matteobruni avatar Nov 26 '21 08:11 matteobruni

OoWw can't use it in react?

bruno2galdino avatar May 12 '22 16:05 bruno2galdino

OoWw can't use it in react?

It’s not recommended since there's a memory leak that can worsen the website performance

You can see an example of that issue here: https://codepen.io/matteobruni/pen/dyZeYOg

matteobruni avatar May 12 '22 18:05 matteobruni