Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to setup particles.js with React ? #483

Open
Kasunjalitha opened this issue Nov 26, 2021 · 3 comments
Open

How to setup particles.js with React ? #483

Kasunjalitha opened this issue Nov 26, 2021 · 3 comments

Comments

@Kasunjalitha
Copy link

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?

@matteobruni
Copy link

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

@bruno2galdino
Copy link

OoWw can't use it in react?

@matteobruni
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants