I'm creating a Preact component for using tsParticles library but nothing appears.
I'm porting the React project but something isn't compatible probably.
You can checkout the component here: https://github.com/matteobruni/preact-particles
This is how I'm using it:
<Particles id="tsparticles" params={{
background: {
color: "#000000",
},
particles: {
number: { value: 100 },
move: { enable: true }
}
}} />
It was the componentShouldUpdate
method with a weak condition that didn't worked with Preact.