wufe / react-particles-js

Particles.js for React
https://rpj.bembi.dev/
MIT License
1.16k stars 106 forks source link

Canvas is rendering nothing... #138

Closed faris closed 4 years ago

faris commented 4 years ago

I tried using the nasa defaults on https://particles.matteobruni.it/# and changed the colours of the particles to be black, yet I am still unable too see anything.

I am using this for personal website on here (if you want to take a closer look) : https://github.com/faris/Personal-Website

Tested using Firefox/Chromium on Linux (Manjaro if it helps)

Any pointers on getting this working, would be greatly appreciated :)

Thanks, Faris

matteobruni commented 4 years ago

Hi @faris,

I've checked your repository and the error is in the jsx file:

<Particles params={{particlesConfig}} />

but this should be:

<Particles params={particlesConfig} />

You can see a working sample here: https://codesandbox.io/s/modest-williamson-onf70?file=/src/particles.json

faris commented 4 years ago

Ooops haha.

Thanks so much for the quick help and response @matteobruni