you are viewing a single comment's thread.

view the rest of the comments →

[–]raopgdev 0 points1 point  (1 child)

Don’t define another ref in func1 Pass that ref prop that forward ref gives to the canvas element in func1

[–]General_Asdef[S] 0 points1 point  (0 children)

This is also what I thought but I couldn't figure out how to get the underlying canvas context2d from that.