Open
Description
Hi Matt,
This morning I came across Kyle Simpson's TNG-Hooks library, and this reminded me of #42 and your idea to provide a Hooks API for canvas-sketch
.
I adapted my previous mousemove example to use tng-hooks
: https://codesandbox.io/s/github/mhyfritz/canvas-sketch-mouse-tng-hook.
Maybe a first implementation for canvas-sketch
could use tng-hooks
internally, automatically wrap the render function in TNG()
and expose the TNG hooks (useState
etc.) via, say, canvas-sketch/hooks
?
Just something to consider 😄
Happy 2019!
Metadata
Metadata
Assignees
Labels
No labels