Skip to content
Discussion options

You must be logged in to vote

react is all about top down data or on directional flow. state > view, as in the view is a mere reflection of state. the parent must have the data, and it forwards that data to its children by props.

if you refer to the useFrame and you want to set position in there, then why not simply ref.current.children.forEach(child => ... ? letters is a collection of vdom elements, these are not threejs objects.

here's an example with group children in a useframe https://twitter.com/0xca0a/status/1328130549198811142

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jaymefosa
Comment options

@drcmda
Comment options

Answer selected by jaymefosa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants