Do we need to use refs for the new @tsparticles/react libraries? #5347
Replies: 1 comment
-
Please open an issue or a discussion in the react repository about that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This question is related to issue #4210
In the old ts-particles I was able to play / pause items by using a ref on the Particles container prop:
But the new documention for @tsparticles/react says to do something like this:
(and the new Particles component doesn't have a container prop)
I tried something hacky by saving container as state but it didn't work:
How do I play / pause?
Beta Was this translation helpful? Give feedback.
All reactions