Closed boardfish closed 5 years ago
this is normal, its context based, and ultimatively there could be multiple illustrations, it has to be part of its tree to know the illustration it targets - no way around that. i could let you access the parent illu maybe, then you could still drive it in a loop (which is part of the component tree).
I like that idea – while children in React should generally be oblivious to their parents, Shape
s rely on Illustration
s to exist, so in this case I think it makes sense to do it that way.
it's in. useZdog, documented on the front page
This has likely got a similar source to #7.
useRender
can only be used inside ofIllustration
s, but I'd like to be able to change therotate
attribute of anIllustration
on a frame-by-frame basis as you would with:Originally posted by @boardfish in https://github.com/drcmda/react-zdog/issues/7#issuecomment-499520438