In order to comply with WCAG A requirements, I had to add a play/pause button to the particle effect on my website. However, I had no method of accessing the underlying Particles Container instance from this component. This PR adds that functionality and makes use of refs to easily add in a ref.current.pause() and ref.current.play() functionality to unblock my usage:
In order to comply with WCAG A requirements, I had to add a play/pause button to the particle effect on my website. However, I had no method of accessing the underlying Particles Container instance from this component. This PR adds that functionality and makes use of
refs
to easily add in aref.current.pause()
andref.current.play()
functionality to unblock my usage: