-
So far, the posts I've read across here does not address anything about React or Svelte-equivalent cleanups, so I was wondering if there's a alternative way to achieve this? I am trying to re-write a React toy-project in VanJS, and I want to be able to call a function to stop a particular event. |
Beta Was this translation helpful? Give feedback.
Answered by
Tao-VanJS
Oct 21, 2024
Replies: 1 comment 11 replies
-
Could you share an example of what kind of cleanup you are describing? |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
canvasRef
is just a reference to a DOM element. In VanJS, you can achieve the same with a more straightforward way: