Replies: 1 comment
-
Please show me your draw function, usage of the prop and let variable and also how you're passing it in, etc in a minimal example I can reproduce. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I am following the instruction to pass a useState's state as a prop using the sketch type in typescript.
I would like my state to be outside the p5 component, and be shared among several p5 instances.
However I need a p5 instance to be able to change my useState's state -> utilitizing the set function provided by useState.
I am unsure on how to pass that set function to the p5 instance.
I am currently trying this:
Beta Was this translation helpful? Give feedback.
All reactions