wufe / react-particles-js

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

Cannot create jsx elements within the Particles Element? #30

Closed garritfra closed 6 years ago

garritfra commented 6 years ago

In this project, i have put some html elements inside the particles div. I am now trying to migrate this pen into my react portfolio. I wasn't able to put any elements into the Particles div like so:

<Particles params={this.config} className="particles-js">
  <h1>Hello World</h1> // <-- Element does not show up
</Particles>

I think this is related to the canvas element that is being returned, but is there a workaround for this?

garritfra commented 6 years ago

closed, see https://github.com/Wufe/react-particles-js/issues/16